From 86ac0f5e76979de35bafd5198a75bfe354d2729a Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 12 Jun 2016 10:35:47 -0400 Subject: [PATCH] Added const to first arg of adios(). --- h/prototypes.h | 2 +- sbr/error.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.56.0