aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-20 11:24:55 +0000
committerEric Engestrom <[email protected]>2019-07-19 22:39:38 +0100
commit09a8a39940ad02951b62454a5d222af669fef694 (patch)
tree0173b84bc6eb25db0b28d428ce5a0783cf983b97 /src/util
parent367bb55c17abce6b571ab3cf36e9ea95f4c2dfca (diff)
util: use standard name for strchrnul()
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/u_string.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util/u_string.h b/src/util/u_string.h
index 751ae909e1b..b43c42650e1 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -50,12 +50,9 @@
extern "C" {
#endif
-#ifdef _GNU_SOURCE
-
-#define util_strchrnul strchrnul
-
-#else
+#ifndef _GNU_SOURCE
+#define strchrnul util_strchrnul
static inline char *
util_strchrnul(const char *s, char c)
{