summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-26 14:27:46 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-26 14:27:46 +0000
commit9d890f269cf54291edee585168960a56731cb363 (patch)
treeb85a37834f72212c64c3babdeea967a397a0e605 /source3/rpcclient
parent56128244261f8e4c6e1144da66c736fbc2104665 (diff)
downloadsamba-9d890f269cf54291edee585168960a56731cb363.tar.gz
samba-9d890f269cf54291edee585168960a56731cb363.tar.bz2
samba-9d890f269cf54291edee585168960a56731cb363.zip
cut/paste code from smbclient for wait_keyboard() function. oops.
(This used to be commit c25560ba43bd1b53d79456cbceab954aa3bb1dac)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 9c6c99927f..ec9fe33b58 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -268,12 +268,12 @@ static void wait_keyboard(void)
while (1) {
FD_ZERO(&fds);
- FD_SET(cli->fd,&fds);
+ FD_SET(smb_cli->fd,&fds);
FD_SET(fileno(stdin),&fds);
timeout.tv_sec = 20;
timeout.tv_usec = 0;
- sys_select(MAX(cli->fd,fileno(stdin))+1,&fds,&timeout);
+ sys_select(MAX(smb_cli->fd,fileno(stdin))+1,&fds,&timeout);
if (FD_ISSET(fileno(stdin),&fds))
return;
@@ -282,8 +282,8 @@ static void wait_keyboard(void)
client_receive_smb as we want to receive
session keepalives and then drop them here.
*/
- if (FD_ISSET(cli->fd,&fds))
- receive_smb(cli->fd,cli->inbuf,0);
+ if (FD_ISSET(smb_cli->fd,&fds))
+ receive_smb(smb_cli->fd,smb_cli->inbuf,0);
}
}
#endif