]> andersk Git - moira.git/blobdiff - update/update_server.c
Document new blanche exit status semantics. (Don't claim success
[moira.git] / update / update_server.c
index 992cf51d8c7f907f464a3f1db3f918f4ef7ecb49..a74fd87cd5063147603fd20fba3efe3843ea9213 100644 (file)
@@ -25,24 +25,23 @@ static char *rcsid_dispatch_c = "$Header$";
 #include <termios.h>
 #endif
 #include "update.h"
+#include "des.h"
 
-extern int auth_001(), inst_001();
-extern int xfer_002(), xfer_003(), exec_002();
+extern int auth_002(), xfer_002(), xfer_003(), exec_002();
 
 extern int sync_proc(), quit();
 extern char *config_lookup();
 
 extern void gdb_debug();
 extern int errno;
-extern STRING instructions;
 
 CONNECTION conn;
 int code, log_priority;
 char *whoami;
 
 int have_authorization = 0;
+C_Block session;
 int have_file = 0;
-int have_instructions = 0;
 int done = 0;
 int uid = 0;
 
@@ -54,8 +53,7 @@ struct _dt {
      char *str;
      int (*proc)();
 } dispatch_table[] = {
-     { "INST_001", inst_001 },
-     { "AUTH_001", auth_001 },
+     { "AUTH_002", auth_002 },
      { "XFER_002", xfer_002 },
      { "XFER_003", xfer_003 },
      { "EXEC_002", exec_002 },
@@ -202,10 +200,7 @@ initialize()
 {
      /* keep have_authorization around */
      have_file = 0;
-     have_instructions = 0;
      done = 0;
-     if (STRING_DATA(instructions) != (char *)NULL)
-         string_free(&instructions);
 }
 
 
This page took 0.03196 seconds and 4 git commands to generate.