]> andersk Git - moira.git/commitdiff
update for the new com_err library
authormar <mar>
Tue, 27 Jun 1989 11:48:09 +0000 (11:48 +0000)
committermar <mar>
Tue, 27 Jun 1989 11:48:09 +0000 (11:48 +0000)
clients/mailmaint/mailmaint.c

index 9dea7d1e2c422ef2eef1bd29a927b65c7ca719cb..6e02bb9599800738d68e65e04761befd8b174079 100644 (file)
@@ -43,7 +43,12 @@ char *whoami;                /* should not be static, for logging package */
 static int status;
 static int scream();
 extern char *strsave();
-int menu_err_hook();
+#ifdef __STDC__
+void menu_err_hook(const char *who, long code, const char *fmt, va_list args);
+#else
+void menu_err_hook();
+#define const
+#endif
 
 typedef struct list_info {
     int active;
@@ -95,13 +100,14 @@ main(argc, argv)
     char *argv[];
 
 {
-    int (*old_hook)();
+#ifdef __STDC__
+    void (*old_hook)(const char *, long, const char *, va_list);
+#else
+    void (*old_hook)();
+#endif
     int use_menu = 1;
     char buf[BUFSIZ];
 
-    init_sms_err_tbl();
-    init_krb_err_tbl();
-
     if ((whoami = rindex(argv[0], '/')) == NULL)
        whoami = argv[0];
     else
@@ -809,6 +815,7 @@ scream()
 botch\n");
     sms_disconnect();
     exit(1);
+    return(0); /* to keep compiler happy */
 }
 
 /****************************************************/
@@ -927,11 +934,11 @@ Prompt(prompt, buf, buflen, crok)
  * curses instead of around it.
  */
 
-int
+void
 menu_err_hook(who, code, fmt, args)
-    char *who;
-    int code;
-    char *fmt;
+    const char *who;
+    long code;
+    const char *fmt;
     va_list args;
 {
     char buf[BUFSIZ], *cp;
This page took 0.034636 seconds and 5 git commands to generate.