mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
ncb: use socklen_t
The recvfrom() function takes a socklen_t, not an int. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
71771e501c
commit
fadad1573f
@ -8,7 +8,7 @@ int main (int argc, char *argv[])
|
|||||||
int s, len, o, port = 6666;
|
int s, len, o, port = 6666;
|
||||||
char buf[512];
|
char buf[512];
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
int addr_len = sizeof addr;
|
socklen_t addr_len = sizeof addr;
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
port = atoi (argv[1]);
|
port = atoi (argv[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user