projects
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4cf22a
)
Added missing return values.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 22 Dec 2007 20:26:34 +0000
(20:26 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 22 Dec 2007 20:26:34 +0000
(20:26 +0000)
lib/silcutil/silcnet.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcnet.c
b/lib/silcutil/silcnet.c
index 027d70891bb86c623fd382c9bd2ae5b821128e4d..d2121556ef91c77372556f591d329279794ead7f 100644
(file)
--- a/
lib/silcutil/silcnet.c
+++ b/
lib/silcutil/silcnet.c
@@
-94,6
+94,7
@@
int silc_net_accept_connection(int sock)
int ret = accept(sock, 0, 0);
if (ret < 0)
silc_set_errno_posix(errno);
+ return ret;
}
/* Sets a option for a socket. */
@@
-103,6
+104,7
@@
int silc_net_set_socket_opt(int sock, int level, int option, int on)
int ret = setsockopt(sock, level, option, (void *)&on, sizeof(on));
if (ret < 0)
silc_set_errno_posix(errno);
+ return ret;
}
/* Get socket options */
@@
-113,6
+115,7
@@
int silc_net_get_socket_opt(int sock, int level, int option,
int ret = getsockopt(sock, level, option, optval, opt_len);
if (ret < 0)
silc_set_errno_posix(errno);
+ return ret;
}
/* Checks whether IP address sent as argument is valid IPv4 address. */