X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/db744b85cee9eccd9840823d06fa8ea1ff124993..b5a92b55eb5670e982899e5dfd9aaa1d35db002f:/sbr/mime_type.c diff --git a/sbr/mime_type.c b/sbr/mime_type.c index e4f3e5b8..395c10cc 100644 --- a/sbr/mime_type.c +++ b/sbr/mime_type.c @@ -1,5 +1,4 @@ -/* - * mime_type.c -- routine to determine the MIME Content-Type of a file +/* mime_type.c -- routine to determine the MIME Content-Type of a file * * This code is Copyright (c) 2014, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -87,7 +86,7 @@ mime_type(const char *file_name) { int binary = 0, c; if (!(fp = fopen(file_name, "r"))) { - advise (NULL, "unable to access file \"%s\"", file_name); + inform("unable to access file \"%s\"", file_name); return NULL; } @@ -121,7 +120,7 @@ get_file_info(const char *proc, const char *file_name) { if ((cp = strchr(file_name, '\''))) { /* file_name contains a single quote. */ if (strchr(file_name, '"')) { - advise(NULL, "filenames containing both single and double quotes " + inform("filenames containing both single and double quotes " "are unsupported for attachment"); return NULL; } @@ -162,12 +161,12 @@ get_file_info(const char *proc, const char *file_name) { (void) pclose(fp); } else { - advise(NULL, "no output from %s", cmd); + inform("no output from %s", cmd); } free(cmd); } else { - advise(NULL, "concat with \"%s\" failed, out of memory?", proc); + inform("concat with \"%s\" failed, out of memory?", proc); } return cp ? strdup(cp) : NULL;