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:
parent
4e0771b2da
commit
b38d86a585
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user