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 authored and Iker Pedrosa committed 2022-12-22 11:43:29 +01:00
1 parent ed69feaaff
commit e2df287aad
24 files changed
+24 -24

No files matched your search

+1 -1
View File
@@ -335,5 +335,5 @@ static bool string_match (const char *tok, const char *string)
}
#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 */