File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -652,56 +652,55 @@ struct
652652
653653 int main()
654654 {
655- struct hostent *he;
656- struct servent *se;
657- he =
655+ int x;
656+ x =
658657 gethostbyname_r(
659658 (const char*) NULL ,
660659 (struct hostent* )NULL ,
661660 (char * )NULL ,
662661 (int )0 ,
663662 (struct hostent** )NULL ,
664663 (int * )NULL );
665- he =
664+ x =
666665 gethostbyaddr_r(
667- (const char * )NULL ,
666+ (const void * )NULL ,
668667 (int )0 ,
669668 (int )0 ,
670669 (struct hostent* )NULL ,
671670 (char * )NULL ,
672671 (int )0 ,
673672 (struct hostent** )NULL ,
674673 (int * )NULL );
675- se =
674+ x =
676675 getservbyname_r(
677676 (const char * )NULL ,
678677 (const char * )NULL ,
679678 (struct servent* )NULL ,
680679 (char * )NULL ,
681680 (int )0 ,
682681 (struct servent** )NULL );
683- se =
682+ x =
684683 getservbyport_r(
685684 (int )0 ,
686685 (const char * )NULL ,
687686 (struct servent* )NULL ,
688687 (char * )NULL ,
689688 (int )0 ,
690689 (struct servent** )NULL );
691- pr =
690+ x =
692691 getprotoent_r(
693692 (struct protoent* )NULL ,
694693 (char * )NULL ,
695694 (int )0 ,
696695 (struct protoent** )NULL );
697- pr =
696+ x =
698697 getprotobyname_r(
699698 (const char * )NULL ,
700699 (struct protoent* )NULL ,
701700 (char * )NULL ,
702701 (int )0 ,
703702 (struct protoent** )NULL );
704- pr =
703+ x =
705704 getprotobynumber_r(
706705 (int )0 ,
707706 (struct protoent* )NULL ,
@@ -793,7 +792,7 @@ struct
793792
794793 int main()
795794 {
796- int (* mincore_ptr)(const void*, size_t, char*) = mincore;
795+ int (* mincore_ptr)(void*, size_t, unsigned char*) = mincore;
797796 return (int )(mincore_ptr == NULL );
798797 }
799798 | }
Original file line number Diff line number Diff line change 99
1010#define ARGS (args ...) args
1111
12+ #include <errno.h>
1213#include <caml/alloc.h>
1314#include <caml/fail.h>
1415#include <caml/memory.h>
You can’t perform that action at this time.
0 commit comments