diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-08 13:18:58 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-21 23:47:00 -0700 |
commit | e38f959f756a0a3d4ce17e6e2735cfd411fd9d82 (patch) | |
tree | cf649264e373cb23824451043de4cd41cf6a9ff8 | |
parent | b8160915909e59fc65cc08855fb32fee6f5d89ad (diff) | |
download | xscope-e38f959f756a0a3d4ce17e6e2735cfd411fd9d82.tar.gz |
Use local variable for ioctl argument instead of a static
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | common.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -187,8 +187,6 @@ static int ListenTransCount; #include <netinet/in.h> /* struct sockaddr_in */ #include <netdb.h> /* struct servent * and struct hostent * */ -static int ON = 1; /* used in ioctl */ - #define BACKLOG 5 #endif @@ -204,6 +202,7 @@ SetUpConnectionSocket(int iport, void (*connectionFunc) (int)) struct sockaddr_in sin; short port; int one = 1; + int ON = 1; /* used in ioctl */ #ifndef SO_DONTLINGER struct linger linger; #endif /* SO_DONTLINGER */ |