ncb: use socklen_t
PATCH 1/1 ncb: use socklen_t
The recvfrom() function takes a socklen_t, not an int.
Signed-off-by Mike Frysinger <[email protected]>
--- tools/ncb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/ncb.c +1 -1
@@ -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 ]);
Signature · 1 line
1.6.1
Wolfgang Denk
AppliedPATCH 1/1 ncb: use socklen_t
Dear Mike Frysinger,
Quoted 6 lines · In message <[email protected]> you wrote:
The
recvfrom()function takes asocklen_t, not an int.Signed-off-by Mike Frysinger <[email protected]>--- tools/ncb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Each kiss is as the first. -- Miramanee, Kirk's wife, "The Paradise Syndrome", stardate 4842.6