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
652
652
653
653
int main()
654
654
{
655
- struct hostent *he;
656
- struct servent *se;
657
- he =
655
+ int x;
656
+ x =
658
657
gethostbyname_r(
659
658
(const char*) NULL ,
660
659
(struct hostent* )NULL ,
661
660
(char * )NULL ,
662
661
(int )0 ,
663
662
(struct hostent** )NULL ,
664
663
(int * )NULL );
665
- he =
664
+ x =
666
665
gethostbyaddr_r(
667
- (const char * )NULL ,
666
+ (const void * )NULL ,
668
667
(int )0 ,
669
668
(int )0 ,
670
669
(struct hostent* )NULL ,
671
670
(char * )NULL ,
672
671
(int )0 ,
673
672
(struct hostent** )NULL ,
674
673
(int * )NULL );
675
- se =
674
+ x =
676
675
getservbyname_r(
677
676
(const char * )NULL ,
678
677
(const char * )NULL ,
679
678
(struct servent* )NULL ,
680
679
(char * )NULL ,
681
680
(int )0 ,
682
681
(struct servent** )NULL );
683
- se =
682
+ x =
684
683
getservbyport_r(
685
684
(int )0 ,
686
685
(const char * )NULL ,
687
686
(struct servent* )NULL ,
688
687
(char * )NULL ,
689
688
(int )0 ,
690
689
(struct servent** )NULL );
691
- pr =
690
+ x =
692
691
getprotoent_r(
693
692
(struct protoent* )NULL ,
694
693
(char * )NULL ,
695
694
(int )0 ,
696
695
(struct protoent** )NULL );
697
- pr =
696
+ x =
698
697
getprotobyname_r(
699
698
(const char * )NULL ,
700
699
(struct protoent* )NULL ,
701
700
(char * )NULL ,
702
701
(int )0 ,
703
702
(struct protoent** )NULL );
704
- pr =
703
+ x =
705
704
getprotobynumber_r(
706
705
(int )0 ,
707
706
(struct protoent* )NULL ,
@@ -793,7 +792,7 @@ struct
793
792
794
793
int main()
795
794
{
796
- int (* mincore_ptr)(const void*, size_t, char*) = mincore;
795
+ int (* mincore_ptr)(void*, size_t, unsigned char*) = mincore;
797
796
return (int )(mincore_ptr == NULL );
798
797
}
799
798
| }
Original file line number Diff line number Diff line change 9
9
10
10
#define ARGS (args ...) args
11
11
12
+ #include <errno.h>
12
13
#include <caml/alloc.h>
13
14
#include <caml/fail.h>
14
15
#include <caml/memory.h>
You can’t perform that action at this time.
0 commit comments