From e1e689debc76f3029dabdf30c20b6cd831273128 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 10 Oct 2001 07:51:20 +0000 Subject: ops, remove my test code, sorry. fix some return codes missed in previous commit. (This used to be commit de70a56e04d68dd3d4f8074118c141bafe201686) --- source3/client/client.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index 47261af2e2..293aaf308b 100644 --- a/source3/client/client.c +++ b/source3/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 \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 \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 \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); } } -- cgit