diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-04 05:24:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-04 05:24:02 +0000 |
commit | 5059fbf44f5b427f93081d1090f4f2c818b01478 (patch) | |
tree | 9409d3e515855c6f9da7a9217cd3b3ad3bac89ad /source3/smbd | |
parent | b6a3fd6777b4029afca03a36dfdb9bb45c01fa9c (diff) | |
download | samba-5059fbf44f5b427f93081d1090f4f2c818b01478.tar.gz samba-5059fbf44f5b427f93081d1090f4f2c818b01478.tar.bz2 samba-5059fbf44f5b427f93081d1090f4f2c818b01478.zip |
fix some "shadows global" errors.
(This used to be commit 25b7ada3587d1fe68164a2339d7f0fbcecf18e53)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index b250572a1f..826b17121f 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -2441,7 +2441,7 @@ static void process_smb(char *inbuf, char *outbuf) static BOOL open_oplock_ipc() { struct sockaddr_in sock_name; - int name_len = sizeof(sock_name); + int len = sizeof(sock_name); DEBUG(3,("open_oplock_ipc: opening loopback UDP socket.\n")); @@ -2456,7 +2456,7 @@ address %x. Error was %s\n", htonl(INADDR_LOOPBACK), strerror(errno))); } /* Find out the transient UDP port we have been allocated. */ - if(getsockname(oplock_sock, (struct sockaddr *)&sock_name, &name_len)<0) + if(getsockname(oplock_sock, (struct sockaddr *)&sock_name, &len)<0) { DEBUG(0,("open_oplock_ipc: Failed to get local UDP port. Error was %s\n", strerror(errno))); @@ -2473,7 +2473,7 @@ address %x. Error was %s\n", htonl(INADDR_LOOPBACK), strerror(errno))); /**************************************************************************** process an oplock break message. ****************************************************************************/ -static BOOL process_local_message(int oplock_sock, char *buffer, int buf_size) +static BOOL process_local_message(int sock, char *buffer, int buf_size) { int32 msg_len; int16 from_port; @@ -2543,7 +2543,7 @@ oplocks. Returning success.\n")); toaddr.sin_port = htons(from_port); toaddr.sin_family = AF_INET; - if(sendto( oplock_sock, msg_start, OPLOCK_BREAK_MSG_LEN, 0, + if(sendto( sock, msg_start, OPLOCK_BREAK_MSG_LEN, 0, (struct sockaddr *)&toaddr, sizeof(toaddr)) < 0) { DEBUG(0,("process_local_message: sendto process %d failed. Errno was %s\n", |