Consistently use size_t for optlen in getsockopt.
This commit is contained in:
parent
10cebaf941
commit
658e5bca96
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue