X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6fc2909634fb431c65ecfa8b6db4f6519f99b389..fe86b6d55ac470e6e832c53ea2c71e680efe5274:/uip/mkstemp.c diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 259c3edd..6933a3fd 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -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);