]> andersk Git - moira.git/blobdiff - clients/mailmaint/mailmaint.c
posixify source
[moira.git] / clients / mailmaint / mailmaint.c
index b9c4e0d0c3d4cdc7095ded4a1f22ea0ebf4061ea..7f085aa5f55391a619064a10147894f41878c2d1 100644 (file)
@@ -19,12 +19,10 @@ static char rcsid_mailmaint_c[] = "$Header$";
 #include <stdio.h>
 #include <pwd.h>
 #include <signal.h>
-#include <strings.h>
+#include <string.h>
 #include <curses.h>
 #include <sys/types.h>
-#ifndef sun
 #include <varargs.h>
-#endif
 #include <com_err.h>
 #include <ctype.h>
 #include <moira.h>
@@ -113,7 +111,7 @@ main(argc, argv)
     int use_menu = 1;
     char buf[BUFSIZ], *motd;
 
-    if ((whoami = rindex(argv[0], '/')) == NULL)
+    if ((whoami = strrchr(argv[0], '/')) == NULL)
        whoami = argv[0];
     else
        whoami++;
This page took 0.039177 seconds and 4 git commands to generate.