]> andersk Git - moira.git/blobdiff - lib/nfsparttype.c
Diane Delgado's changes for a fixed table-locking order
[moira.git] / lib / nfsparttype.c
index 8d1809410838004ad34c0e1951e10710448837ad..c7e47cf5b37b9db992f1667d33427edd400915fa 100644 (file)
@@ -16,7 +16,7 @@ static char *rcsid_nfsparttype_c = "$Header$";
 #include <mit-copyright.h>
 #include <moira.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <ctype.h>
 
 extern char *strsave();
@@ -91,9 +91,9 @@ parse_filesys_type(fs_type_name)
     
     do {
        /* Copy next component of type to temp */
-       char *t = index (cp, ',');
+       char *t = strchr (cp, ',');
        if (t) {
-           bcopy(cp, temp, t-cp);
+           memcpy(temp, cp, t-cp);
            temp[t-cp]='\0';
            cp = t + 1; /* one after the comma */
        } else {
This page took 0.066612 seconds and 4 git commands to generate.