]> andersk Git - moira.git/blobdiff - clients/addusr/addusr.c
posixify source
[moira.git] / clients / addusr / addusr.c
index 13e52dddad7a583408cecbdbd85f84bb234a43d3..5554fe7eea8d0dc982938da49494978fa4f9ee8f 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <mit-copyright.h>
+#include <string.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <des.h>
@@ -33,7 +34,6 @@ int reg_only, reg, verbose, nodupcheck;
 char *whoami;
 int duplicate, errors;
 
-extern char *index();
 extern char *FixCase(), *RemoveHyphens(), *strtrim();
 extern int errno;
 int usercheck(), scream();
@@ -172,7 +172,7 @@ char **argv;
        /* Last name is first thing on line */
        last = buf;
        /* First name follows a comma */
-       p = index(last, ',');
+       p = strchr(last, ',');
        if (!p) {
            com_err(whoami, MR_BAD_CHAR, "Missing comma on line %d", lineno);
            errors++;
This page took 0.074083 seconds and 4 git commands to generate.