2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Include string.h unconditionally and only use strings.h for strn?casecmp()

In the pre-POSIX days BSD had strings.h, not string.h.
Now strings.h is only used for non-ANSI string functions.
This commit is contained in:
Todd C. Miller
2020-05-18 07:59:24 -06:00
parent dd88460800
commit 446ae3f507
167 changed files with 393 additions and 1179 deletions

View File

@@ -22,10 +22,7 @@
*/
#include <config.h>
#ifdef HAVE_STRING_H
# include <string.h>
#endif /* HAVE_STRING_H */
#include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif /* HAVE_STRINGS_H */