projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8ce073c
)
show_default_sockopts: avoid signed/unsigned warn
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Sun, 14 Aug 2011 06:22:17 +0000 (23:22 -0700)
committer
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Sun, 14 Aug 2011 06:22:17 +0000 (23:22 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>
show_default_sockopts.c
patch
|
blob
|
history
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) {