]> andersk Git - moira.git/blobdiff - update/send_file.c
sms -> moira
[moira.git] / update / send_file.c
index 2f7e16c5ef622cba23dee4cc37f5e20d509314b5..2c4932cfca8c76890744b7ca81a1ab5c4045dc8f 100644 (file)
@@ -15,7 +15,7 @@ static char *rcsid_send_file_c = "$Header$";
 #include <com_err.h>
 #include <gdb.h>
 #include <dcm.h>
-#include <sms.h>
+#include <moira.h>
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <update.h>
@@ -57,12 +57,12 @@ char *target_path;
     fd = open(pathname, O_RDONLY, 0);
     if (fd < 0) {
        com_err(whoami, errno, "unable to open %s for read", pathname);
-       return(SMS_OCONFIG);
+       return(MR_OCONFIG);
     }
     if (fstat(fd, &statb)) {
        com_err(whoami, errno, "unable to stat %s", pathname);
        close(fd);
-       return(SMS_OCONFIG);
+       return(MR_OCONFIG);
     }
     n_to_send = statb.st_size;
     
@@ -107,7 +107,7 @@ char *target_path;
        if (n < 0) {
            com_err(whoami, errno, " reading %s for transmission", pathname);
            close(fd);
-           return(SMS_ABORTED);
+           return(MR_ABORTED);
        }
        MAX_STRING_SIZE(data) = n;
        code = send_object(conn, (char *)&data, STRING_T);
@@ -150,5 +150,5 @@ char *target_path;
        }
     }
     close(fd);
-    return(SMS_SUCCESS);
+    return(MR_SUCCESS);
 }
This page took 0.029738 seconds and 4 git commands to generate.