[U-Boot] [PATCH] ncb: use socklen_t
Mike Frysinger
vapier at gentoo.org
Fri Jan 9 10:38:17 CET 2009
The recvfrom() function takes a socklen_t, not an int.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
tools/ncb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 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]);
--
1.6.1
More information about the U-Boot
mailing list