Don't redefine errno(3)

It is Undefined Behavior to declare errno (see NOTES in its manual page).
Instead of using the errno dummy declaration, use one that doesn't need
a comment.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2022-12-21 19:02:25 +01:00
committed by Iker Pedrosa
parent ed69feaaff
commit e2df287aad
24 changed files with 24 additions and 24 deletions

View File

@ -55,5 +55,5 @@ void do_pam_passwd (const char *user, bool silent, bool change_expired)
(void) pam_end (pamh, PAM_SUCCESS);
}
#else /* !USE_PAM */
extern int errno; /* warning: ANSI C forbids an empty source file */
extern int ISO_C_forbids_an_empty_translation_unit;
#endif /* !USE_PAM */