]> andersk Git - moira.git/blobdiff - update/update_test.c
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / update / update_test.c
index e3fefcb5b6bdd763c83a3ac7daebae0bb50c279b..1e10dd1aa794c9b52143e608694b86aab31ceae4 100644 (file)
@@ -1,28 +1,22 @@
-/* $Header$
+/* $Id$
  *
  * Test client for update_server protocol.
  *
- * Reads commands from the command line:
- * test host [commands...]
- *     -s file file    sends file to host
- *     -S file file    sends encrypted file to host
- *     -i file         sends instruction file to host
- *     -x file         executes instructions
- *     -n              nop
+ * Copyright 1992-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  */
 
 #include <mit-copyright.h>
+#include <moira.h>
+#include <update.h>
+
 #include <stdio.h>
-#include <string.h>
+#include <stdlib.h>
+
 #include <gdb.h>
-#include <sys/param.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <update.h>
-#include <errno.h>
-#include <moira.h>
-#include <moira_site.h>
-#include <krb.h>
+
+void usage(void);
 
 CONNECTION conn;
 char *whoami;
@@ -30,7 +24,7 @@ char *whoami;
 int main(int argc, char **argv)
 {
   char *host, service_address[256], *file, *rfile, buf[256];
-  int code, i, count = 0;
+  int code, i;
 
   whoami = argv[0];
   initialize_sms_error_table();
@@ -122,7 +116,7 @@ int main(int argc, char **argv)
   exit(code);
 }
 
-usage(void)
+void usage(void)
 {
   fprintf(stderr, "Usage: test host [commands...]\n");
   fprintf(stderr, "  Commands are:\n");
This page took 0.038299 seconds and 4 git commands to generate.