From 80be15c89c42f13f2c48580dace53c67924f805f Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Sat, 13 Aug 2011 23:22:17 -0700 Subject: [PATCH] show_default_sockopts: avoid signed/unsigned warn Signed-off-by: Colin McCabe --- show_default_sockopts.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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) { -- 1.6.6.rc1.39.g9a42