projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b29271
)
Fix error messages
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Sun, 13 Nov 2016 07:31:40 +0000
(08:31 +0100)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Sun, 13 Nov 2016 07:33:37 +0000
(08:33 +0100)
ethsock.c
patch
|
blob
|
history
diff --git
a/ethsock.c
b/ethsock.c
index 64a5058836c58a12f6d1c3d951d1b04d2ed62e17..be1031d8e87f27a1643d64a876d3f7b9e04a3bfd 100644
(file)
--- a/
ethsock.c
+++ b/
ethsock.c
@@
-687,7
+687,7
@@
int ethsock_ip_add(struct ethsock *sock, uint32_t ipaddr, uint32_t ipmask, struc
int fd = socket(AF_INET, SOCK_DGRAM, 0);
if (!fd) {
- perror("socket");
+
sock_
perror("socket");
return -1;
}
@@
-731,7
+731,7
@@
int ethsock_ip_add(struct ethsock *sock, uint32_t ipaddr, uint32_t ipmask, struc
memset(&ifra.ifra_broadaddr, 0, sizeof(ifra.ifra_broadaddr));
if (ioctl(fd, add ? SIOCAIFADDR : SIOCDIFADDR, &ifra) != 0) {
- perror(
"ioctl(SIOCA
IFADDR)");
+ perror(
add ? "ioctl(SIOCAIFADDR)" : "ioctl(SIOCD
IFADDR)");
goto out;
}