ncb: use socklen_t

The recvfrom() function takes a socklen_t, not an int.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2009-01-09 04:38:17 -05:00 committed by Wolfgang Denk
parent 71771e501c
commit fadad1573f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ int main (int argc, char *argv[])
int s, len, o, port = 6666;
char buf[512];
struct sockaddr_in addr;
int addr_len = sizeof addr;
socklen_t addr_len = sizeof addr;
if (argc > 1)
port = atoi (argv[1]);