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