projects
/
cmccabe-bin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Makefile: build all
[cmccabe-bin]
/
show_default_sockopts.c
diff --git
a/show_default_sockopts.c
b/show_default_sockopts.c
index
cc5f0d4
..
31e2916
100644
(file)
--- a/
show_default_sockopts.c
+++ b/
show_default_sockopts.c
@@
-21,7
+21,8
@@
struct option_t {
void option_query(int s, int type, struct option_t *p)
{
- int value, vlen = 4;
+ int value;
+ socklen_t vlen = 4;
for (; p->descr != NULL; ++p) {
if (getsockopt(s, type, p->opt, (void *)&value, &vlen) == -1) {