commit | b35beab32da839e6998d9eaa54d423bad490ec7a | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Fri Jan 09 04:38:17 2009 -0500 |
committer | Wolfgang Denk <wd@denx.de> | Fri Jan 16 09:31:05 2009 +0100 |
tree | dd6eb3e9f27ab9229ff912f6f2964b0840beb438 | |
parent | c33cb8617f5075aa9989172b66fb0704c821c7a1 [diff] |
ncb: use socklen_t The recvfrom() function takes a socklen_t, not an int. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
diff --git a/tools/ncb.c b/tools/ncb.c index 74deebb..7e123f1 100644 --- a/tools/ncb.c +++ b/tools/ncb.c
@@ -8,7 +8,7 @@ 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]);