From 9ce233ad4377b609ecb8d3bb84036bb629f7b291 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Nov 2010 22:41:03 +0100 Subject: src: declare non-modified data as const Signed-off-by: Jan Engelhardt --- src/libipulog_compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libipulog_compat.c b/src/libipulog_compat.c index fbcf8e5..64ca7f3 100644 --- a/src/libipulog_compat.c +++ b/src/libipulog_compat.c @@ -27,10 +27,10 @@ struct ipulog_handle struct ulog_packet_msg upmsg; /* has to be last in structure */ }; -struct ipulog_errmap_t +static const struct ipulog_errmap_t { int errcode; - char *message; + const char *message; } ipulog_errmap[] = { { IPULOG_ERR_NONE, "No error" }, @@ -64,7 +64,7 @@ static unsigned int gmask2group(unsigned int gmask) int ipulog_errno = IPULOG_ERR_NONE; -char *ipulog_strerror(int errcode) +const char *ipulog_strerror(int errcode) { if (errcode < 0 || errcode > IPULOG_MAXERR) errcode = IPULOG_ERR_IMPL; -- cgit v1.2.3