Cosmetic changes.
[mmh] / uip / whatnowsbr.c
index 3ed0ea4..bd40904 100644 (file)
@@ -688,12 +688,6 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp,
 
        default:
                if ((status = pidwait(pid, NOTOK))) {
-#ifdef ATTVIBUG
-                       if ((cp = mhbasename(*ed)) && strcmp(cp, "vi") == 0 &&
-                                       (status & 0x00ff) == 0)
-                               status = 0;
-                       else {
-#endif
                        if (((status & 0xff00) != 0xff00)
                                && (!reedit || (status & 0x00ff))) {
                                if (!use && (status & 0xff00) && (rename(file, cp = m_backup (file)) != NOTOK)) {
@@ -704,9 +698,6 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp,
                        }
                        status = -2;  /* maybe "reedit ? -2 : -1"? */
                        break;
-#ifdef ATTVIBUG
-                       }
-#endif
                }
 
                reedit++;
@@ -793,6 +784,8 @@ sendfile(char **arg, char *file, int pushsw)
                return 1;
        }
 
+       /* some different sendproc */
+
        context_save();  /* save the context file */
        fflush(stdout);
 
@@ -801,6 +794,7 @@ sendfile(char **arg, char *file, int pushsw)
        switch (child_id) {
        case NOTOK:
                advise(NULL, "unable to fork, so sending directly...");
+               /* fall */
        case OK:
                vecp = 0;
                vec[vecp++] = invo_name;
@@ -917,7 +911,7 @@ sendit(char *sp, char **arg, char *file, int pushed)
        ** Merge any arguments from command line (now in vec)
        ** and arguments from profile.
        */
-       arguments = getarguments (sp, n, vec, 1);
+       arguments = getarguments(sp, n, vec, 1);
        argp = arguments;
 
        debugsw = 0;
@@ -1009,7 +1003,7 @@ sendit(char *sp, char **arg, char *file, int pushed)
                dp = getcpy(cp);
                for (ap = brkstring(dp, " ", "\n"); ap && *ap; ap++) {
                        vec[vecp++] = "-alias";
-                       vec[vecp++] = *ap;
+                       vec[vecp++] = getcpy(etcpath(*ap));
                }
        }