]> andersk Git - moira.git/commitdiff
sms -> moira
authormar <mar>
Fri, 13 Apr 1990 17:34:45 +0000 (17:34 +0000)
committermar <mar>
Fri, 13 Apr 1990 17:34:45 +0000 (17:34 +0000)
afssync/Makefile
afssync/sync.qc

index c3e4fd969694f40386f078a549d66bd82a0e58b3..9145b74a197b61d0a3b696e42a0c19b968bdcdea 100644 (file)
@@ -3,7 +3,7 @@
 CFLAGS = -I/mit/afsdev/build/vax/include -I../include -O
 
 OBJS = prprocs.o prutils.o utils.o ubik.o
-LIBS= -L../lib -lsms -lcom_err \
+LIBS= -L../lib -lmoira -lcom_err \
         /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
 
 .SUFFIXES: .qc
index 16677986ec550ded0e8a5e8cd1fcd7852503f474..18a2d79490c43820931420a25f1ecbeaa3f8bd6a 100644 (file)
@@ -1,10 +1,7 @@
 /* $Header$
  *
- * This generates the zone files necessary to load a hesiod server.
- * The following zones are generated: passwd, uid, pobox, group,
- * grplist, gid, filsys, cluster, pcap, sloc, service.
  *
- *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ *  (c) Copyright 1989 by the Massachusetts Institute of Technology.
  *  For copying and distribution information, please see the file
  *  <mit-copyright.h>.
  */
@@ -16,8 +13,8 @@
 #include "print.h"
 #include "prserver.h"
 #include "prerror.h"
-#include <sms.h>
-#include <sms_app.h>
+#include <moira.h>
+#include <moira_site.h>
 #include <ctype.h>
 
 #define USERSMS 14487
@@ -39,7 +36,7 @@ char **argv;
 
     if (argc != 2) {
        fprintf(stderr, "usage: %s outfile\n", argv[0]);
-       exit(SMS_ARGS);
+       exit(MR_ARGS);
     }
 
     dbase_fd = open(argv[1], O_RDWR|O_CREAT, 0660);
@@ -57,14 +54,14 @@ char **argv;
     do_passwd();
     status = PR_AddToGroup(NULL, USERSMS, SYSADMINID);
     if (status) {
-       prserror(status, "adding SMS to system:administrators", 0, 0);
+       prserror(status, "adding MR to system:administrators", 0, 0);
     }
     do_groups();
 
 ##  end transaction
 ##  exit
 
-    exit(SMS_SUCCESS);
+    exit(MR_SUCCESS);
 }
 
 
@@ -83,12 +80,12 @@ static int ingerr(num)
 
     switch (*num) {
     case INGRES_DEADLOCK:
-       ingres_errno = SMS_DEADLOCK;
+       ingres_errno = MR_DEADLOCK;
        break;
     default:
-       ingres_errno = SMS_INGRES_ERR;
+       ingres_errno = MR_INGRES_ERR;
     }
-    com_err(whoami, SMS_INGRES_ERR, " code %d\n", *num);
+    com_err(whoami, MR_INGRES_ERR, " code %d\n", *num);
     exit(ingres_errno);
 }
 
This page took 0.113235 seconds and 5 git commands to generate.