]> andersk Git - moira.git/blobdiff - server/mr_shutdown.c
Command line printer manipulation client, and build goo.
[moira.git] / server / mr_shutdown.c
index a32f7d4dbafab78abdce99aad600f142a106e1b0..4bf27a820c5b893480f87a135ab260143bc060bf 100644 (file)
@@ -1,39 +1,31 @@
-/*
- *     $Source$
- *     $Author$
- *     $Header$
- *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *     For copying and distribution information, please see the file
- *     <mit-copyright.h>.
+/* $Id$
  *
+ * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  */
 
-#ifndef lint
-static char *rcsid_sms_shutdown_c = "$Header$";
-#endif lint
-
 #include <mit-copyright.h>
-#include <sys/errno.h>
 #include "mr_server.h"
 
+#include <errno.h>
+
+RCSID("$Header$");
+
 extern char *takedown;
 extern char *whoami;
 
 void sigshut(int sig)
 {
-       takedown = "Shut down by signal.";
+  takedown = "Shut down by signal.";
 }
 
-void
-do_shutdown(cl)
-       client *cl;
+void do_shutdown(client *cl)
 {
-       /*
-        * This feature is no longer supported.  Sorry.
-        */
-       com_err(whoami, 0, "Shutdown request by %s rejected",
-               cl->clname);
-       cl->reply.mr_status = EACCES;
+  /*
+   * This feature is no longer supported.  Sorry.
+   */
+  com_err(whoami, 0, "Shutdown request by %s rejected", cl->clname);
+  client_reply(cl, EACCES);
 }
-               
+
This page took 0.0714590000000001 seconds and 4 git commands to generate.