]> andersk Git - moira.git/commitdiff
check for Sr. as a name suffix; don't change the class on STAFF people
authormar <mar>
Tue, 30 Jan 1990 18:08:23 +0000 (18:08 +0000)
committermar <mar>
Tue, 30 Jan 1990 18:08:23 +0000 (18:08 +0000)
regtape/students.dc

index e57940ef6c54eafd7e12728507e7398775a25c9d..00ecaf1d1b2d6445d686e6b4ce6af4b4ff20420f 100644 (file)
@@ -133,7 +133,7 @@ FILE *in;
     static struct entry e;
     static char buf[BUFSIZ], eid[16], classbuf[10], titlebuf[12];
     static int year = 0;
-    int ends_jr, ends_iii, ends_iv;
+    int ends_jr, ends_iii, ends_iv, ends_sr;
     char *p;
 
     if (year == 0) {
@@ -164,17 +164,17 @@ FILE *in;
     } else
       e.first = "";
     e.first = strtrim(e.first);
-    ends_jr = ends_iii = ends_iv = 0;
+    ends_jr = ends_iii = ends_iv = ends_sr = 0;
     LookForSt(e.last);
     LookForO(e.last);
-    LookForJrAndIII(e.last, &ends_jr, &ends_iii, &ends_iv);
-    LookForJrAndIII(e.first, &ends_jr, &ends_iii, &ends_iv);
+    LookForJrAndIII(e.last, &ends_sr, &ends_jr, &ends_iii, &ends_iv);
+    LookForJrAndIII(e.first, &ends_sr, &ends_jr, &ends_iii, &ends_iv);
     FixCase(e.last);
     FixCase(e.first);
     FixCase(e.middle);
     e.title = titlebuf;
     titlebuf[0] = 0;
-    AppendJrOrIII(titlebuf, &ends_jr, &ends_iii, &ends_iv);
+    AppendJrOrIII(titlebuf, &ends_sr, &ends_jr, &ends_iii, &ends_iv);
 
     e.id = &buf[LOC_ID];
     e.id[LEN_ID] = 0;
@@ -228,7 +228,7 @@ struct entry *e;
        newuser(e);
        return;
     }
-    if (strcmp(e->class, strtrim(class))) {
+    if (strcmp(e->class, strtrim(class)) && strcmp(class, "STAFF")) {
        com_err(whoami, 0, "updating class for user %s %s from %s to %s",
                first, last, class, e->class);
        strcpy(class, e->class);
This page took 0.044344 seconds and 5 git commands to generate.