mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Don't call warn() with no format string.
This commit is contained in:
parent
cf6e06f240
commit
084c79f69e
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ find_idle_and_ttywrite(w)
|
|||
|
||||
(void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
|
||||
if (stat(tbuf, &sb) < 0) {
|
||||
warn(tbuf);
|
||||
warn("%s", tbuf);
|
||||
return;
|
||||
}
|
||||
w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
|
||||
|
|
|
|||
Loading…
Reference in a new issue