warnx: fix needless static

I noticed after the review that these shouldn't be static. Remove the
'static' from them, otherwise concurrent calls to warn* might see a
similar but to the original.
This commit is contained in:
Warner Losh 2020-10-24 00:03:11 +00:00
parent 4e0771b2da
commit b38d86a585
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366983

View File

@ -161,7 +161,7 @@ warnc(int code, const char *fmt, ...)
void
vwarnc(int code, const char *fmt, va_list ap)
{
static int saved_errno;
int saved_errno;
saved_errno = errno;
if (err_file == NULL)
@ -187,7 +187,7 @@ warnx(const char *fmt, ...)
void
vwarnx(const char *fmt, va_list ap)
{
static int saved_errno;
int saved_errno;
saved_errno = errno;
if (err_file == NULL)