]> andersk Git - moira.git/blobdiff - clients/moira/user.c
This version has listmaint, clustermaint, and attachmaint working
[moira.git] / clients / moira / user.c
index 4f0a1e279e76ee3815b4d2e1d90535a3e9dc0a75..9a5d07f3fddbf3af427c246651ea300af6dd9cd8 100644 (file)
@@ -1,4 +1,4 @@
-#ifndef lint
+#if (!defined(lint) && !defined(SABER))
   static char rcsid_module_c[] = "$Header$";
 #endif lint
 
@@ -33,7 +33,7 @@
 
 #define LOGIN 0
 #define UID   1
-#define NAME  2
+#define BY_NAME  2
 #define QUOTA 3
 #define CLASS 4
 
@@ -58,7 +58,7 @@ Bool name;
 {
     char temp_buf[BUFSIZ], *newname;
 
-    sprintf(temp_buf,"\nChanging Attributes of user %s.\n",info[NAME]);
+    sprintf(temp_buf,"\nChanging Attributes of user %s.\n",info[U_NAME]);
     Put_message(temp_buf);
 
     if (name) {
@@ -93,7 +93,7 @@ Bool name;
 /*     Function Name: GetUserInfo
  *     Description: Stores the user information in a queue.
  *     Arguments: type - type of field given to get info, one of:
- *                        LOGIN, UID, NAME, CLASS.
+ *                        LOGIN, UID, BY_NAME, CLASS.
  *                 name1 - name of thing specified by type (wildcards okay)
  *                 name2 - other name, only used in get user by first and last.
  *                         (wildcards okay).
@@ -128,7 +128,7 @@ char *name1, *name2;
            return (NULL);      
        }
        break;
-    case NAME:
+    case BY_NAME:
        args[0] = name1;
        args[1] = name2;    
        if ( (status = sms_query("get_user_by_name", 1, args,
@@ -562,7 +562,7 @@ char *argv[];
     struct qelem *top, *elem;
     char buf;
 
-    elem = top = GetUserInfo(NAME, argv[1], argv[2]);
+    elem = top = GetUserInfo(BY_NAME, argv[1], argv[2]);
 
     if (!PromptWithDefault("Print full information, or just the names (F/N)?",
                           &buf, 1, "F"))
This page took 0.040153 seconds and 4 git commands to generate.