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/client/client.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/client/client.c')
-rw-r--r-- | source3/client/client.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 25eeccc645..567d3d68ff 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -92,7 +92,7 @@ extern BOOL tar_reset; /* clitar bits end */ -int myumask = 0755; +mode_t myumask = 0755; extern pstring scope; @@ -840,22 +840,22 @@ static BOOL do_this_one(file_info *finfo) *****************************************************************************/ static char *fix_char_ptr(unsigned int datap, unsigned int converter, char *rdata, int rdrcnt) { -if( datap == 0 ) /* turn NULL pointers */ + if( datap == 0 ) /* turn NULL pointers */ { /* into zero length strings */ - return ""; + return ""; } -else + else { - unsigned int offset = datap - converter; + unsigned int offset = datap - converter; - if( offset >= rdrcnt ) + if( offset >= rdrcnt ) { DEBUG(1,("bad char ptr: datap=%u, converter=%u, rdata=%lu, rdrcnt=%d>", datap, converter, (unsigned long)rdata, rdrcnt)); - return "<ERROR>"; + return "<ERROR>"; } - else + else { - return &rdata[offset]; + return &rdata[offset]; } } } @@ -2407,8 +2407,8 @@ static void cmd_print(char *inbuf,char *outbuf ) } /**************************************************************************** -show a print queue - this is deprecated as it uses the old smb that -has limited support - the correct call is the cmd_p_queue_4() after this. + show a print queue - this is deprecated as it uses the old smb that + has limited support - the correct call is the cmd_p_queue_4() after this. ****************************************************************************/ static void cmd_queue(char *inbuf,char *outbuf ) { @@ -3379,7 +3379,6 @@ wait for keyboard activity, swallowing network packets static void wait_keyboard(char *buffer) { fd_set fds; - int selrtn; struct timeval timeout; while (1) @@ -3391,7 +3390,7 @@ static void wait_keyboard(char *buffer) timeout.tv_sec = 20; timeout.tv_usec = 0; - selrtn = sys_select(MAX(Client,fileno(stdin))+1,&fds,&timeout); + sys_select(MAX(Client,fileno(stdin))+1,&fds,&timeout); if (FD_ISSET(fileno(stdin),&fds)) return; |