diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2020-05-18 07:59:24 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2020-05-18 07:59:24 -0600 |
commit | 03e395e6564715b304022c08589d4cc1064009b9 (patch) | |
tree | fbb91e531a0debace872cfbd7823c3aa4dc40670 /plugins/audit_json | |
parent | 8e729fc1ec50d0adbdfcf2b54084b9a5cd6bf063 (diff) | |
download | sudo-03e395e6564715b304022c08589d4cc1064009b9.tar.gz |
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.
Diffstat (limited to 'plugins/audit_json')
-rw-r--r-- | plugins/audit_json/audit_json.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/audit_json/audit_json.c b/plugins/audit_json/audit_json.c index 303922fbe..3300500ec 100644 --- a/plugins/audit_json/audit_json.c +++ b/plugins/audit_json/audit_json.c @@ -33,12 +33,7 @@ #else # include "compat/stdbool.h" #endif /* HAVE_STDBOOL_H */ -#ifdef HAVE_STRING_H -# include <string.h> -#endif /* HAVE_STRING_H */ -#ifdef HAVE_STRINGS_H -# include <strings.h> -#endif /* HAVE_STRINGS_H */ +#include <string.h> #include <signal.h> #include <unistd.h> #include <fcntl.h> |