From: Derrick Brashear Date: Wed, 8 Aug 2001 03:38:45 +0000 (+0000) Subject: aix-needs-string-h-in-aclproc-20010807 X-Git-Tag: BP-openafs-stable-1_2_x~60 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1c6df2368cf2f2e322972ff856414c69d7019af1;p=packages%2Fo%2Fopenafs.git aix-needs-string-h-in-aclproc-20010807 and we get back to the crux of the issue --- diff --git a/src/libacl/aclprocs.c b/src/libacl/aclprocs.c index 357734484..055148045 100644 --- a/src/libacl/aclprocs.c +++ b/src/libacl/aclprocs.c @@ -24,6 +24,9 @@ RCSID("$Header$"); #else #include #endif +#ifdef HAVE_STRING_H +#include +#endif #include #include #include @@ -248,14 +251,14 @@ struct acl_accessList **acl; if (sscanf(nextc, "%s\t%d\n", lnames.namelist_val[i], &k) != 2) return(-1); (*acl)->entries[i].rights = k; - nextc = (strchr(nextc, '\n')); + nextc = strchr(nextc, '\n'); nextc ++; /* 1 + index can cast ptr to integer */ } j=i; for (i = (*acl)->total - 1; i >= (*acl)->total - (*acl)->negative; i--,j++) { if (sscanf(nextc, "%s\t%d\n", lnames.namelist_val[j], &((*acl)->entries[j].rights)) != 2) return(-1); - nextc = (strchr(nextc, '\n')); + nextc = strchr(nextc, '\n'); nextc ++; } lids.idlist_len = 0;