summaryrefslogtreecommitdiff
path: root/roaming_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'roaming_common.c')
-rw-r--r--roaming_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/roaming_common.c b/roaming_common.c
index 272deade3..3885a0368 100644
--- a/roaming_common.c
+++ b/roaming_common.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: roaming_common.c,v 1.6 2009/10/24 11:22:37 andreas Exp $ */ 1/* $OpenBSD: roaming_common.c,v 1.7 2009/12/06 23:53:45 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2004-2009 AppGate Network Security AB 3 * Copyright (c) 2004-2009 AppGate Network Security AB
4 * 4 *
@@ -52,9 +52,9 @@ int
52get_snd_buf_size() 52get_snd_buf_size()
53{ 53{
54 int fd = packet_get_connection_out(); 54 int fd = packet_get_connection_out();
55 int optval, optvallen; 55 int optval;
56 socklen_t optvallen = sizeof(optval);
56 57
57 optvallen = sizeof(optval);
58 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &optval, &optvallen) != 0) 58 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &optval, &optvallen) != 0)
59 optval = DEFAULT_ROAMBUF; 59 optval = DEFAULT_ROAMBUF;
60 return optval; 60 return optval;
@@ -64,9 +64,9 @@ int
64get_recv_buf_size() 64get_recv_buf_size()
65{ 65{
66 int fd = packet_get_connection_in(); 66 int fd = packet_get_connection_in();
67 int optval, optvallen; 67 int optval;
68 socklen_t optvallen = sizeof(optval);
68 69
69 optvallen = sizeof(optval);
70 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, &optvallen) != 0) 70 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, &optvallen) != 0)
71 optval = DEFAULT_ROAMBUF; 71 optval = DEFAULT_ROAMBUF;
72 return optval; 72 return optval;