#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;
int found_checksum;
if (!have_authorization) {
- reject_call(SMSU_NO_AUTH);
+ reject_call(SMS_PERM);
return(1);
}
if (done) /* re-initialize data */
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");