]> andersk Git - moira.git/blobdiff - server/mr_util.c
Initial revision
[moira.git] / server / mr_util.c
index 18f7c5a0f26d97534cb99d980776d9275e73d199..e4348d2f6ddbf1c629e6d56eb7754729ca8fc1e4 100644 (file)
@@ -4,19 +4,20 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  */
 
 #ifndef lint
 static char *rcsid_sms_util_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include "sms_server.h"
 
 #include <ctype.h>
 #include <strings.h>
 #include <sys/types.h>
-#include <zephyr/zephyr.h>
 
 extern char *whoami;
 
@@ -138,27 +139,3 @@ register char *s;
          p[1] = 0;
     }
 }
-
-
-/* Sends a zephyrgram of class "SMS", instance as a parameter.  Ignores
- * errors while sending message.
- */
-
-send_zgram(inst, msg)
-char *inst;
-char *msg;
-{
-    ZNotice_t znotice;
-
-    bzero (&znotice, sizeof (znotice));
-    znotice.z_kind = UNSAFE;
-    znotice.z_class = "SMS";
-    znotice.z_class_inst = inst;
-    znotice.z_default_format = "SMS $instance:\n $message\n";
-    (void) ZInitialize ();
-    znotice.z_message = msg;
-    znotice.z_message_len = strlen(msg) + 1;
-    znotice.z_opcode = "";
-    znotice.z_recipient = "";
-    ZSendNotice(&znotice, ZNOAUTH);
-}
This page took 0.030223 seconds and 4 git commands to generate.