From: David Levine Date: Sun, 12 Jun 2016 14:35:47 +0000 (-0400) Subject: Added const to first arg of adios(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/86ac0f5e76979de35bafd5198a75bfe354d2729a?ds=inline Added const to first arg of adios(). --- diff --git a/h/prototypes.h b/h/prototypes.h index 441863ac..ef02f9a6 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -18,7 +18,7 @@ char *etcpath(char *); struct msgs_array; void add_profile_entry (const char *, const char *); -void adios (char *, char *, ...) NORETURN; +void adios (const char *, char *, ...) NORETURN; void admonish (char *, char *, ...); void advertise (const char *, char *, char *, va_list); void advise (const char *, char *, ...); diff --git a/sbr/error.c b/sbr/error.c index 6fb0d5cc..1ac4cb11 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -31,7 +31,7 @@ advise (const char *what, char *fmt, ...) * print out error message and exit */ void -adios (char *what, char *fmt, ...) +adios (const char *what, char *fmt, ...) { va_list ap;