diff options
author | Simo Sorce <idra@samba.org> | 2001-10-10 07:51:20 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-10-10 07:51:20 +0000 |
commit | de70a56e04d68dd3d4f8074118c141bafe201686 (patch) | |
tree | dbc1a8ac818cfdd36994a90d7f171f1fc05c1a7e /source/client/client.c | |
parent | c9b3e6c71401efe754c10f7077671f0c1cebdafb (diff) | |
download | samba-de70a56e04d68dd3d4f8074118c141bafe201686.tar.gz samba-de70a56e04d68dd3d4f8074118c141bafe201686.tar.xz samba-de70a56e04d68dd3d4f8074118c141bafe201686.zip |
ops, remove my test code, sorry.
fix some return codes missed in previous commit.
Diffstat (limited to 'source/client/client.c')
-rw-r--r-- | source/client/client.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source/client/client.c b/source/client/client.c index 47261af2e2f..293aaf308bd 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -772,7 +772,7 @@ static int cmd_get(void) if (!next_token_nr(NULL,p,NULL,sizeof(rname)-strlen(rname))) { d_printf("get <filename>\n"); - return; + return 1; } pstrcpy(lname,p); dos_clean_name(rname); @@ -1393,7 +1393,7 @@ static int cmd_print(void) if (!next_token_nr(NULL,lname,NULL, sizeof(lname))) { d_printf("print <filename>\n"); - return; + return 1; } pstrcpy(rname,lname); @@ -1462,7 +1462,7 @@ static int cmd_del(void) if (!next_token_nr(NULL,buf,NULL,sizeof(buf))) { d_printf("del <filename>\n"); - return; + return 1; } pstrcat(mask,buf); @@ -1553,7 +1553,7 @@ static int cmd_prompt(void) prompt = !prompt; DEBUG(2,("prompting is now %s\n",prompt?"on":"off")); - return; + return 1; } @@ -2647,11 +2647,7 @@ static int do_message_op(void) io_bufsize = MAX(1, atoi(optarg)); break; default: - - printf("########## mangle test code ###########\n"); - mangle_test_code(); - - /* usage(pname);*/ + usage(pname); exit(1); } } |