aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2007-05-07 11:28:01 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2007-05-07 11:28:01 +0000
commit6f62d86388881eb416096c511cea73f69e84edc3 (patch)
tree76aadb02871bca1dfab83f3bc0ebc270b9f665a0 /usr.bin
parente4cedda8073ff234a68bfcae36d449aac206670b (diff)
downloadsrc-6f62d86388881eb416096c511cea73f69e84edc3.tar.gz
src-6f62d86388881eb416096c511cea73f69e84edc3.zip
Make logmsg take const char * arguments.
Set WARNS to 6.
Notes
Notes: svn path=/head/; revision=169344
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/logger/Makefile1
-rw-r--r--usr.bin/logger/logger.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/logger/Makefile b/usr.bin/logger/Makefile
index 922192ce919f..6ff722452793 100644
--- a/usr.bin/logger/Makefile
+++ b/usr.bin/logger/Makefile
@@ -4,6 +4,7 @@
.include <bsd.own.mk>
PROG= logger
+WARNS?= 6
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index b706f0d47092..ff3c3925cec6 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$");
int decode(char *, CODE *);
int pencode(char *);
-static void logmessage(int, char *, char *, char *);
+static void logmessage(int, const char *, const char *, const char *);
static void usage(void);
struct socks {
@@ -89,7 +89,8 @@ int
main(int argc, char *argv[])
{
int ch, logflags, pri;
- char *tag, *host, *svcname, buf[1024];
+ char *tag, *host, buf[1024];
+ const char *svcname;
tag = NULL;
host = NULL;
@@ -175,7 +176,7 @@ main(int argc, char *argv[])
* Send the message to syslog, either on the local host, or on a remote host
*/
void
-logmessage(int pri, char *host, char *svcname, char *buf)
+logmessage(int pri, const char *host, const char *svcname, const char *buf)
{
static struct socks *socks;
static int nsock = 0;