use socklen_t with network functions
This commit is contained in:
parent
89659d87d9
commit
b7c6c3c10e
6
netcat.c
6
netcat.c
@ -95,6 +95,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#define MAXHOSTNAMELEN 256
|
#define MAXHOSTNAMELEN 256
|
||||||
|
|
||||||
|
#ifndef HAVE_SOCKLEN_T
|
||||||
|
#define socklen_t int
|
||||||
|
#endif
|
||||||
|
|
||||||
struct host_poop {
|
struct host_poop {
|
||||||
char name[MAXHOSTNAMELEN]; /* dns name */
|
char name[MAXHOSTNAMELEN]; /* dns name */
|
||||||
char addrs[8][24]; /* ascii-format IP addresses */
|
char addrs[8][24]; /* ascii-format IP addresses */
|
||||||
@ -775,7 +779,7 @@ int dolisten (rad, rp, lad, lp)
|
|||||||
register int nnetfd;
|
register int nnetfd;
|
||||||
register int rr;
|
register int rr;
|
||||||
HINF * whozis = NULL;
|
HINF * whozis = NULL;
|
||||||
int x;
|
socklen_t x;
|
||||||
char * cp;
|
char * cp;
|
||||||
USHORT z;
|
USHORT z;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user