From: Mike Frysinger Date: Fri, 9 Jan 2009 09:38:17 +0000 (-0500) Subject: ncb: use socklen_t X-Git-Tag: v2009.01-rc3~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fadad1573fb16c90025f08a2861d6047d093cba7;p=u-boot ncb: use socklen_t The recvfrom() function takes a socklen_t, not an int. Signed-off-by: Mike Frysinger --- 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]);