summaryrefslogtreecommitdiff
path: root/usr.sbin/uhsoctl
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-19 20:38:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-19 20:38:26 +0000
commit5eeae9a725969ca2d296281542aeca0f712cf674 (patch)
tree10f2f89577e6344b0032c13478eecc90bfc5e634 /usr.sbin/uhsoctl
parent5c67a2799c12b8be339d6e6d4e9deb1f1b28d474 (diff)
downloadsrc-test-5eeae9a725969ca2d296281542aeca0f712cf674.tar.gz
src-test-5eeae9a725969ca2d296281542aeca0f712cf674.zip
In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings
not being literals. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=228721
Diffstat (limited to 'usr.sbin/uhsoctl')
-rw-r--r--usr.sbin/uhsoctl/uhsoctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/uhsoctl/uhsoctl.c b/usr.sbin/uhsoctl/uhsoctl.c
index a6123647fc2a2..421bf819ea2d1 100644
--- a/usr.sbin/uhsoctl/uhsoctl.c
+++ b/usr.sbin/uhsoctl/uhsoctl.c
@@ -340,7 +340,7 @@ logger(int pri, const char *fmt, ...)
va_start(ap, fmt);
vasprintf(&buf, fmt, ap);
if (syslog_open)
- syslog(pri, buf);
+ syslog(pri, "%s", buf);
else {
switch (pri) {
case LOG_INFO:
@@ -1174,7 +1174,7 @@ do_connect(struct ctx *ctx, const char *tty)
buf = ra.val[0].ptr;
if (strstr(buf[0], "+CME ERROR:") != NULL) {
buf[0] += 12;
- errx(1, buf[0]);
+ errx(1, "%s", buf[0]);
}
freeresp(&ra);
} else