* $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;
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);
-}