mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 12:14:32 +08: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;
|
||||
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]);
|
||||
|
Loading…
Reference in New Issue
Block a user