]> diplodocus.org Git - nmh/blobdiff - uip/mkstemp.c
send and whatnow: Remove deprecated -attach... switches.
[nmh] / uip / mkstemp.c
index 259c3edd39de5b4c28e841de477fb4c6f93a7058..6933a3fdb5b36fbef1b7d68967c3d7e940db09eb 100644 (file)
@@ -109,10 +109,10 @@ build_template(const char *directory, const char *prefix, const char *suffix) {
         template[len-1] = '\0';
 
         return template;
-    } else {
-        perror("malloc");
-        return NULL;
     }
+
+    perror("malloc");
+    return NULL;
 }
 
 
@@ -164,7 +164,7 @@ process_args(int argc, char **argv, const char **directory,
                 ambigsw(cp, switches);
                 done(NOTOK);
             case UNKWNSW:
-                advise (NULL, "-%s unknown", cp);
+                inform("-%s unknown", cp);
                 (void) snprintf(buf, sizeof buf, "%s [switches]", invo_name);
                 print_help(buf, switches, 1);
                 done(NOTOK);