From c1b16938682822d6754a348dfecc6f32746cc7a5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 17 Mar 2012 18:38:59 +0000 Subject: Fix warnings. Doh. --- usr.bin/tmux/log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/log.c b/usr.bin/tmux/log.c index 4124cfbfa74..cade075ccf8 100644 --- a/usr.bin/tmux/log.c +++ b/usr.bin/tmux/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.5 2012/03/17 18:23:03 nicm Exp $ */ +/* $OpenBSD: log.c,v 1.6 2012/03/17 18:38:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -39,6 +39,7 @@ FILE *log_file; /* Debug level. */ int log_level; +void log_event_cb(int, const char *); void log_vwrite(int, const char *, va_list); __dead void log_vfatal(const char *, va_list); @@ -46,7 +47,7 @@ __dead void log_vfatal(const char *, va_list); void log_event_cb(unused int severity, const char *msg) { - log_warnx(msg); + log_warnx("%s", msg); } /* Open logging to tty. */ -- cgit v1.2.3