]> andersk Git - moira.git/commitdiff
updated include files & error codes; changed checksum routine
authormar <mar>
Mon, 22 Aug 1988 16:18:17 +0000 (16:18 +0000)
committermar <mar>
Mon, 22 Aug 1988 16:18:17 +0000 (16:18 +0000)
update/get_file.c

index 8495caa922367422e417b3dd8d87098f6c92e379..a1e19787d52da07603f0ee0e760b9b171accb436 100644 (file)
@@ -8,12 +8,12 @@ static char *rcsid_get_file_c = "$Header$";
 #endif lint
 
 #include <stdio.h>
-#include "gdb.h"
+#include <gdb.h>
 #include <ctype.h>
 #include <sys/param.h>
 #include <sys/file.h>
+#include <sms.h>
 #include "update.h"
-#include "smsu_int.h"
 #include "kludge.h"
 
 extern CONNECTION conn;
@@ -67,7 +67,7 @@ get_file(pathname, file_size, checksum)
     int found_checksum;
     
     if (!have_authorization) {
-       reject_call(SMSU_NO_AUTH);
+       reject_call(SMS_PERM);
        return(1);
     }
     if (done)                  /* re-initialize data */
@@ -135,9 +135,9 @@ get_file(pathname, file_size, checksum)
        report_error("re-opening file for checksum verification");
        return(1);
     }
-    found_checksum = checksum_fd(fd);
+    found_checksum = checksum_file(pathname);
     if (checksum != found_checksum) {
-       code = SMSU_CHECKSUM;
+       code = SMS_MISSINGFILE;
        com_err(whoami, code, ": expected = %d, found = %d",
                checksum, found_checksum);
        report_error("checksum error");
This page took 0.097071 seconds and 5 git commands to generate.