]> andersk Git - moira.git/blobdiff - update/update_server.c
Replaced all the EQUEL with ESQL. A few lines may not be proper
[moira.git] / update / update_server.c
index 92d4a10855b90796d08151f5ac6099cf68634a09..7be11608f46f9e96024abd59e24e17b11242c6f2 100644 (file)
@@ -15,7 +15,7 @@ static char *rcsid_dispatch_c = "$Header$";
 #include <gdb.h>
 #include <errno.h>
 #include <strings.h>
-#include <sms.h>
+#include <moira.h>
 #include <sys/file.h>
 #include <sys/ioctl.h>
 #include "update.h"
@@ -65,7 +65,7 @@ err(code, fmt)
      char *fmt;
 {
      sprintf(buf, fmt, error_message(code));
-     sms_log_error(buf);
+     mr_log_error(buf);
 }
 
 main(argc, argv)
@@ -106,7 +106,7 @@ main(argc, argv)
      umask(0022);
      initialize_sms_error_table();
      initialize_krb_error_table();
-     sms_update_initialize();
+     mr_update_initialize();
 
      /* wait for connection */
      gdb_init();
@@ -120,7 +120,7 @@ main(argc, argv)
         exit(1);
      }
 
-     sms_log_info("got connection");
+     mr_log_info("got connection");
      /* got a connection; loop forever */
      while (1) {
          register char *cp;
@@ -145,8 +145,8 @@ main(argc, argv)
              }
          }
          sprintf(buf, "unknown request received: %s\n", STRING_DATA(str));
-         sms_log_error(buf);
-         code = send_int(SMS_UNKNOWN_PROC);
+         mr_log_error(buf);
+         code = send_int(MR_UNKNOWN_PROC);
          if (code) {
              err(connection_errno(conn), "%s: sending UNKNOWN_PROC");
          }
@@ -183,7 +183,7 @@ initialize()
  * any arguments are ignored
  *
  * function:
- *     closes connection from SMS
+ *     closes connection from MR
  */
 int
 quit(str)
@@ -194,7 +194,7 @@ quit(str)
 #endif /* lint */
      (void) send_ok();
      sever_connection(conn);
-     sms_log_info("Closing connection.");
+     mr_log_info("Closing connection.");
      exit(0);
 }
 
@@ -209,7 +209,7 @@ lose(msg)
     char *msg;
 {
     sprintf(buf, "%s: %s", error_message(code), msg);
-    sms_log_error(buf);
+    mr_log_error(buf);
     if (conn)
        sever_connection(conn);
     exit(1);
This page took 0.079507 seconds and 4 git commands to generate.