From 658e5bca96aba746b9460802b4120f1e722b1fef Mon Sep 17 00:00:00 2001 From: mainzelm Date: Wed, 8 Jan 2003 10:17:06 +0000 Subject: [PATCH] Consistently use size_t for optlen in getsockopt. --- scsh/network1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scsh/network1.c b/scsh/network1.c index 86925a9..fff98d6 100644 --- a/scsh/network1.c +++ b/scsh/network1.c @@ -402,7 +402,7 @@ s48_value scheme_getsockopt (s48_value s, s48_value optname) { int optval; - int optlen=sizeof(optval); + size_t optlen=sizeof(optval); if (getsockopt(s48_extract_fixnum (s), s48_extract_fixnum (level), @@ -419,7 +419,7 @@ s48_value scheme_getsockopt_linger (s48_value s, s48_value optname) { struct linger optval; - int optlen=sizeof(optval); + size_t optlen=sizeof(optval); if (getsockopt(s48_extract_fixnum (s), s48_extract_fixnum (level),