diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-01-09 04:38:17 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-01-16 09:31:05 +0100 |
commit | fadad1573fb16c90025f08a2861d6047d093cba7 (patch) | |
tree | dd6eb3e9f27ab9229ff912f6f2964b0840beb438 /tools/ncb.c | |
parent | 71771e501ca33b25433406ddf1a001996f9410ec (diff) | |
download | u-boot-fadad1573fb16c90025f08a2861d6047d093cba7.tar.gz u-boot-fadad1573fb16c90025f08a2861d6047d093cba7.tar.bz2 u-boot-fadad1573fb16c90025f08a2861d6047d093cba7.zip |
ncb: use socklen_t
The recvfrom() function takes a socklen_t, not an int.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools/ncb.c')
-rw-r--r-- | tools/ncb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ncb.c b/tools/ncb.c index 74deebb652..7e123f163d 100644 --- a/tools/ncb.c +++ b/tools/ncb.c @@ -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]); |