]> andersk Git - moira.git/blobdiff - regtape/employee.pc
Remove `delete_user_by_uid' since it's never been used in any logs we have,
[moira.git] / regtape / employee.pc
index 1ebf15eaacc4f4746f956bb063f936dd8359a309..ab181ad082c3ce84c837ea06584675596e967f66 100644 (file)
@@ -64,7 +64,6 @@ struct entry {
     char *address;
     char *phone;
     char *phone2;
-    char *email;
 };
 
 
@@ -72,7 +71,7 @@ char *whoami;
 int newfinger = 0;
 
 #define sqlfail() (sqlca.sqlcode && sqlca.sqlcode != 1403)
-#define SQL_DUPLICATE 2112
+#define SQL_DUPLICATE -2112
 
 
 main(argc, argv)
@@ -159,7 +158,7 @@ struct entry *get_next_entry(in)
 FILE *in;
 {
     static struct entry e;
-    static char buf[BUFSIZ], mid[16], eid[16], email[256];
+    static char buf[BUFSIZ], mid[16], eid[16];
     static char name[LEN_NAME+1], sname[LEN_NAME+1], id[LEN_ID+1];
     static char office[LEN_OFFICE+1], phone[LEN_PHONE+1], phone2[LEN_PHONE2+1];
     static char dept[LEN_DEPT+1], title[LEN_TITLE+1], username[LEN_USERNAME+1];
@@ -228,11 +227,6 @@ FILE *in;
     if (substr(e.title, "PROF") || substr(e.title, "LECTURE"))
       e.class = "FACULTY";
 
-    strcpy(email, strtrim(username));
-    if (host[0] == '@')
-      strncat(email, strtrim(host));
-    e.email = email;
-
     return(&e);
 }
 
This page took 0.16 seconds and 4 git commands to generate.