ops, remove my test code, sorry.
authorSimo Sorce <idra@samba.org>
Wed, 10 Oct 2001 07:51:20 +0000 (07:51 +0000)
committerSimo Sorce <idra@samba.org>
Wed, 10 Oct 2001 07:51:20 +0000 (07:51 +0000)
fix some return codes missed in previous commit.
(This used to be commit de70a56e04d68dd3d4f8074118c141bafe201686)

source3/client/client.c

index 47261af2e2fad9eee7251fa8fa104b65dc9dcdf4..293aaf308bd9f1ed01b6f61bd2760e44d00bf710 100644 (file)
@@ -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);
                }
        }