mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Quiet clang warnings by using string literal format strings.
This commit is contained in:
parent
23b70c1ae2
commit
fa1f169d8c
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue