projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71771e5
)
ncb: use socklen_t
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 9 Jan 2009 09:38:17 +0000
(
04:38
-0500)
committer
Wolfgang Denk
<wd@denx.de>
Fri, 16 Jan 2009 08:31:05 +0000
(09:31 +0100)
The recvfrom() function takes a socklen_t, not an int.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tools/ncb.c
patch
|
blob
|
history
diff --git
a/tools/ncb.c
b/tools/ncb.c
index
74deebb
..
7e123f1
100644
(file)
--- 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;
-
in
t addr_len = sizeof addr;
+
socklen_
t addr_len = sizeof addr;
if (argc > 1)
port = atoi (argv[1]);