]> andersk Git - moira.git/commitdiff
Linted.
authorwesommer <wesommer>
Thu, 3 Sep 1987 02:58:00 +0000 (02:58 +0000)
committerwesommer <wesommer>
Thu, 3 Sep 1987 02:58:00 +0000 (02:58 +0000)
clients/mailmaint/mailmaint.c

index 033345ca1c6f7c370a7374756606748611007dfd..7c150cffe6537fd49c16079db43b17ea3c6078b8 100644 (file)
@@ -84,22 +84,10 @@ main(argc, argv)
 
     int use_menu = 1;
     char buf[BUFSIZ];
-    extern void sms_com_err_hook();
 
     init_sms_err_tbl();
     init_krb_err_tbl();
-    set_com_err_hook(sms_com_err_hook);
-
-    /*
-     * This shouldn't be here.... the experienced user will catch the error
-     * -- the inexperienced one will just be confused. 
-     *
-     * if (getenv("TERM") == (char *) NULL) { Put_message("Please set your TERM
-     * environment variable\n"); goto punt; } if (getenv("TERMCAP") == (char
-     * *) NULL) { Put_message("Please set your TERMCAP environment
-     * variable\n"); goto punt; } 
-     *
-     */
+
     if ((whoami = rindex(argv[0], '/')) == NULL)
        whoami = argv[0];
     else
@@ -158,12 +146,10 @@ lines, %d columns)\n", LINES, COLS);
        cls();
        endwin();
     }
-    sms_disconnect();
     exit(0);
 
 punt:
     com_err(whoami, status, buf);
-/*     sms_disconnect(); */
     exit(1);
 }
 
@@ -291,7 +277,7 @@ show_list_info()
            currow++;
        }
        show_text(currow, STARTCOL, "Press any Key to continue...");
-       c = getchar();
+       (void) getchar();
     }
     clrwin(DISPROW);
 }
@@ -385,7 +371,7 @@ add_member()
        }
        currow = DISPROW + 4;
        show_text(DISPROW + 4, STARTCOL, "Press any Key to continue...");
-       c = getchar();
+       (void) getchar();
     }
     clrwin(DISPROW);
 }
@@ -419,7 +405,7 @@ delete_member()
        }
        currow = DISPROW + 4;
        show_text(DISPROW + 4, STARTCOL, "Press any Key to continue...");
-       c = getchar();
+       (void) getchar();
     }
     clrwin(DISPROW);
 }
@@ -444,7 +430,7 @@ list_by_member()
        com_err(whoami, status, " in get_lists_of_member");
     }
     show_text(currow, STARTCOL, "Press any Key to continue...");
-    c = getchar();
+    (void) getchar();
     clrwin(DISPROW);
     return;
 }
@@ -621,7 +607,7 @@ end_display()
     show_text(currow, STARTCOL, buffer);
     currow++;
     show_text(currow, STARTCOL, "Press any key to continue...");
-    c = getchar();
+    (void) getchar();
     clrwin(DISPROW);
 
 }
@@ -891,7 +877,7 @@ Prompt(prompt, buf, buflen)
        case '\r':
            Put_message("\r");
            *p = '\0';
-           if (strlen(buf) < 1)/* only /n or /r in buff */
+           if (strlen(buf) < 1)/* only \n or \r in buff */
                return (-1);
            else
                return (1);
This page took 0.224164 seconds and 5 git commands to generate.