From a3a70f9f87a5b1f7728e3ae8014f511457cd3fb8 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 8 Mar 2015 13:16:11 +0000 Subject: [PATCH] - log.c, log.h: constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5648 82007160-df01-0410-b94d-b575c5fd34c7 --- src/log.c | 5 ++--- src/log.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/log.c b/src/log.c index f7bc252..c5fa1d7 100644 --- a/src/log.c +++ b/src/log.c @@ -37,7 +37,7 @@ FILE *logfile; FILE *scanlogfile; void -log_open(char *filename) +log_open(const char *filename) { logfile = fopen(filename, "a"); @@ -55,7 +55,7 @@ log_close(void) } void -scanlog_open(char *filename) +scanlog_open(const char *filename) { scanlogfile = fopen(filename, "a"); @@ -98,4 +98,3 @@ log_printf(const char *data, ...) fflush(logfile); } } - diff --git a/src/log.h b/src/log.h index c7785db..aa03b50 100644 --- a/src/log.h +++ b/src/log.h @@ -21,9 +21,9 @@ #ifndef LOG_H #define LOG_H -extern void log_open(char *); +extern void log_open(const char *); extern void log_close(void); -extern void scanlog_open(char *); +extern void scanlog_open(const char *); extern void scanlog_close(void); #ifdef __GNUC__ extern void log_printf(const char *data, ...) __attribute__((format(printf,1,2))); -- 2.30.2