diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
commit | cf3a9741dc7427efb97eff09a3c197a906ce6767 (patch) | |
tree | a5ca09216db91089dd5c2be34751733c4dbff2be /source3/rpcclient/rpcclient.c | |
parent | cdaa53e3ef7e9bbb7dedaa82d54f730085b9250c (diff) | |
download | samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.gz samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.bz2 samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.zip |
Changes to test in configure if capabilities are enabled on a system.
Changes to get Samba to compile cleanly with the IRIX compiler
with the options : -fullwarn -woff 1209,1174 (the -woff options
are to turn off warnings about unused function parameters and
controlling loop expressions being constants).
Split prototype generation as we hit a limit in IRIX nawk.
Removed "." code in smbd/filename.c (yet again :-).
Jeremy.
(This used to be commit e0567433bd72aec17bf5a54cc292701095d25f09)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 203b2c00bf..2921144108 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -215,7 +215,6 @@ wait for keyboard activity, swallowing network packets static void wait_keyboard(struct cli_state *cli) { fd_set fds; - int selrtn; struct timeval timeout; while (1) @@ -226,7 +225,7 @@ static void wait_keyboard(struct cli_state *cli) timeout.tv_sec = 20; timeout.tv_usec = 0; - selrtn = sys_select(MAX(cli->fd,fileno(stdin))+1,&fds,&timeout); + sys_select(MAX(cli->fd,fileno(stdin))+1,&fds,&timeout); if (FD_ISSET(fileno(stdin),&fds)) return; @@ -357,11 +356,10 @@ usage on the program ****************************************************************************/ static void usage(char *pname) { - fprintf(out_hnd, "Usage: %s service <password> [-p port] [-d debuglevel] [-l log] ", + fprintf(out_hnd, "Usage: %s service <password> [-d debuglevel] [-l log] ", pname); fprintf(out_hnd, "\nVersion %s\n",VERSION); - fprintf(out_hnd, "\t-p port connect to the specified port\n"); fprintf(out_hnd, "\t-d debuglevel set the debuglevel\n"); fprintf(out_hnd, "\t-l log basename. Basename for log/debug files\n"); fprintf(out_hnd, "\t-n netbios name. Use this name as my netbios name\n"); @@ -389,7 +387,6 @@ enum client_action int main(int argc,char *argv[]) { char *pname = argv[0]; - int port = SMB_PORT; int opt; extern FILE *dbf; extern char *optarg; @@ -399,9 +396,8 @@ enum client_action char *p; BOOL got_pass = False; char *cmd_str=""; - int myumask = 0755; + mode_t myumask = 0755; enum client_action cli_action = CLIENT_NONE; - int ret = 0; struct client_info cli_info; @@ -540,7 +536,7 @@ enum client_action cli_action = CLIENT_SVC; } - while ((opt = getopt(argc, argv,"s:B:O:M:S:i:N:d:Pp:l:hI:EB:U:L:t:m:W:T:D:c:")) != EOF) + while ((opt = getopt(argc, argv,"s:B:O:M:S:i:N:d:l:hI:EB:U:L:t:m:W:T:D:c:")) != EOF) { switch (opt) { @@ -638,12 +634,6 @@ enum client_action break; } - case 'p': - { - port = atoi(optarg); - break; - } - case 'c': { cmd_str = optarg; @@ -745,20 +735,17 @@ enum client_action exit(-1); } - ret = 0; - switch (cli_action) { case CLIENT_IPC: { - ret = process(&cli_info, cmd_str) ? 0 : 1; + process(&cli_info, cmd_str) ? 0 : 1; break; } default: { fprintf(stderr, "unknown client action requested\n"); - ret = 1; break; } } |