diff options
author | emaste <emaste@FreeBSD.org> | 2011-01-04 13:02:52 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2011-01-04 13:02:52 +0000 |
commit | 0a9e6b919f991f7eb3bfdb49324fd46a7429b918 (patch) | |
tree | ceaeccbf0a1960693a339f62090bc69646721159 /lib/libugidfw | |
parent | a6922e1e8c1ff68412b1e16fd32603720f4c8e71 (diff) | |
download | FreeBSD-src-0a9e6b919f991f7eb3bfdb49324fd46a7429b918.zip FreeBSD-src-0a9e6b919f991f7eb3bfdb49324fd46a7429b918.tar.gz |
Quiet clang warnings by using string literal format strings.
Diffstat (limited to 'lib/libugidfw')
-rw-r--r-- | lib/libugidfw/ugidfw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libugidfw/ugidfw.c b/lib/libugidfw/ugidfw.c index 49c987d..0dc423d 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)) { |