From: Colin Patrick McCabe Date: Sun, 14 Aug 2011 06:22:17 +0000 (-0700) Subject: show_default_sockopts: avoid signed/unsigned warn X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80be15c89c42f13f2c48580dace53c67924f805f;p=cmccabe-bin show_default_sockopts: avoid signed/unsigned warn Signed-off-by: Colin McCabe --- diff --git a/show_default_sockopts.c b/show_default_sockopts.c index cc5f0d4..31e2916 100644 --- 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) {