#include <mit-copyright.h>
#include <moira.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include <ctype.h>
extern char *strsave();
static struct pair fs_names[] = {
{ MR_FS_STUDENT, "Student" },
- { MR_FS_FACULTY, "Faculty/Project" },
{ MR_FS_FACULTY, "Faculty" },
- { MR_FS_FACULTY, "Project" },
{ MR_FS_STAFF, "Staff" },
{ MR_FS_MISC, "Other" },
+ { MR_FS_GROUPQUOTA, "GroupQuota" },
/* Insert new entries before the 0,0 pair */
{ 0, 0 },
};
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 {
t = strtrim(temp); /* nuke leading and trailing whitespace */
for (pp = fs_names; pp->type; pp++) {
- if (cistrcmp(pp->name, t) == 0) {
+ if (strcasecmp(pp->name, t) == 0) {
flags |= pp->type;
break;
}