Skip to contentSkip to conversation

ncb: use socklen_t

PATCH New Mike Frysinger 2 participants 2 messages Jan 9, 2009 – Jan 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ncb: use socklen_t

The recvfrom() function takes a socklen_t, not an int.

---
 tools/ncb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/ncb.c +1 -1
index 74deebb..7e123f1 100644
@@ -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
#1 lore raw

PATCH 1/1 ncb: use socklen_t

Dear Mike Frysinger,

Quoted 6 lines · In message <[email protected]> you wrote:

The recvfrom() function takes a socklen_t, not an int.

---
 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