mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Quiet clang warnings by using string literal format strings.
This commit is contained in:
parent
23b70c1ae2
commit
fa1f169d8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216953
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user