summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-09 04:38:17 -0500
committerWolfgang Denk <wd@denx.de>2009-01-16 09:31:05 +0100
commitfadad1573fb16c90025f08a2861d6047d093cba7 (patch)
treedd6eb3e9f27ab9229ff912f6f2964b0840beb438 /tools
parent71771e501ca33b25433406ddf1a001996f9410ec (diff)
downloadu-boot-imx-fadad1573fb16c90025f08a2861d6047d093cba7.zip
u-boot-imx-fadad1573fb16c90025f08a2861d6047d093cba7.tar.gz
u-boot-imx-fadad1573fb16c90025f08a2861d6047d093cba7.tar.bz2
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')
-rw-r--r--tools/ncb.c2
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]);