Makefile: add pickrand
[cmccabe-bin] / show_default_sockopts.c
index cc5f0d4..31e2916 100644 (file)
@@ -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) {