aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2011-01-04 13:02:52 +0000
committerEd Maste <emaste@FreeBSD.org>2011-01-04 13:02:52 +0000
commitfa1f169d8c284485bd494e281cffdedd51e6cd43 (patch)
treeceaeccbf0a1960693a339f62090bc69646721159 /lib
parent23b70c1ae21553acc791d61475afa4708977ad9c (diff)
downloadsrc-fa1f169d8c284485bd494e281cffdedd51e6cd43.tar.gz
src-fa1f169d8c284485bd494e281cffdedd51e6cd43.zip
Quiet clang warnings by using string literal format strings.
Notes
Notes: svn path=/head/; revision=216953
Diffstat (limited to 'lib')
-rw-r--r--lib/libugidfw/ugidfw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libugidfw/ugidfw.c b/lib/libugidfw/ugidfw.c
index 49c987dc3f65..0dc423d00574 100644
--- a/lib/libugidfw/ugidfw.c
+++ b/lib/libugidfw/ugidfw.c
@@ -1134,7 +1134,7 @@ bsde_get_rule_count(size_t buflen, char *errstr)
len = sizeof(rule_count);
error = sysctlbyname(MIB ".rule_count", &rule_count, &len, NULL, 0);
if (error) {
- len = snprintf(errstr, buflen, strerror(errno));
+ len = snprintf(errstr, buflen, "%s", strerror(errno));
return (-1);
}
if (len != sizeof(rule_count)) {
@@ -1156,7 +1156,7 @@ bsde_get_rule_slots(size_t buflen, char *errstr)
len = sizeof(rule_slots);
error = sysctlbyname(MIB ".rule_slots", &rule_slots, &len, NULL, 0);
if (error) {
- len = snprintf(errstr, buflen, strerror(errno));
+ len = snprintf(errstr, buflen, "%s", strerror(errno));
return (-1);
}
if (len != sizeof(rule_slots)) {