]> andersk Git - moira.git/commitdiff
fix dereferencing null problems in calls to ss_perror()
authormar <mar>
Wed, 20 Sep 1989 14:17:15 +0000 (14:17 +0000)
committermar <mar>
Wed, 20 Sep 1989 14:17:15 +0000 (14:17 +0000)
clients/mrtest/mrtest.c

index 50c16b48d80fc6299cd0f11563ce6231f160a53e..8598f2d1f7b1b64aa7c4668bfc53f103796ccb4e 100644 (file)
@@ -61,7 +61,7 @@ sms()
 test_noop()
 {
        int status = sms_noop();
-       if (status) ss_perror(ss, status, 0);
+       if (status) ss_perror(ss, status, "");
 }
 
 test_new()
@@ -89,13 +89,13 @@ char *argv[];
            }
        }
        status = sms_connect(server);
-       if (status) ss_perror(ss, status, 0);
+       if (status) ss_perror(ss, status, "");
 }
 
 test_disconnect()
 {
        int status = sms_disconnect();
-       if (status) ss_perror(ss, status, 0);
+       if (status) ss_perror(ss, status, "");
 }
 
 test_host()
@@ -106,7 +106,7 @@ test_host()
         bzero(host, sizeof(host));
 
        if (status = sms_host(host, sizeof(host) - 1))
-           ss_perror(ss, status, 0);
+           ss_perror(ss, status, "");
        else
            printf("You are connected to host %s\n", host);
 }
@@ -116,7 +116,7 @@ test_auth()
        int status;
 
        status = sms_auth("smstest");
-       if (status) ss_perror(ss, status, 0);
+       if (status) ss_perror(ss, status, "");
 }
 
 test_script(argc, argv)
@@ -250,7 +250,7 @@ test_query(argc, argv)
        count = 0;
        status = sms_query(argv[1], argc-2, argv+2, print_reply, (char *)NULL);
        printf("%d tuple%s\n", count, ((count == 1) ? "" : "s"));
-       if (status) ss_perror(ss, status, 0);
+       if (status) ss_perror(ss, status, "");
 }
 
 test_access(argc, argv)
@@ -263,7 +263,7 @@ test_access(argc, argv)
                return;
        }
        status = sms_access(argv[1], argc-2, argv+2);
-       if (status) ss_perror(ss, status, 0);
+       if (status) ss_perror(ss, status, "");
 }
 
 
This page took 0.043989 seconds and 5 git commands to generate.