diff options
author | Ed Maste <emaste@FreeBSD.org> | 2011-01-04 13:02:52 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2011-01-04 13:02:52 +0000 |
commit | fa1f169d8c284485bd494e281cffdedd51e6cd43 (patch) | |
tree | ceaeccbf0a1960693a339f62090bc69646721159 /lib | |
parent | 23b70c1ae21553acc791d61475afa4708977ad9c (diff) | |
download | src-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.c | 4 |
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)) { |