summaryrefslogtreecommitdiff
path: root/util/kconfig/regex.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-06-05 08:41:29 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-06-11 08:52:08 +0000
commit1d3fde4693aee3299b9023ec325cbfee90ed0969 (patch)
treec24725edd21dee6e97739f37e5548aa19d60d0ba /util/kconfig/regex.c
parentf061a73ab9654ccae73b2fcbd58d8f08017bae59 (diff)
downloadcoreboot-1d3fde4693aee3299b9023ec325cbfee90ed0969.tar.xz
{src,util}: Use NULL instead of 0 for pointer
Change-Id: I75fa4577055f25dde0a8b1044c005bba72cabd92 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26857 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/kconfig/regex.c')
-rw-r--r--util/kconfig/regex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/kconfig/regex.c b/util/kconfig/regex.c
index 428653ca9d..a6d947fbd0 100644
--- a/util/kconfig/regex.c
+++ b/util/kconfig/regex.c
@@ -1090,12 +1090,12 @@ regex_compile (pattern, size, syntax, bufp)
command. This makes it possible to tell if a new exact-match
character can be added to that command or if the character requires
a new `exactn' command. */
- unsigned char *pending_exact = 0;
+ unsigned char *pending_exact = NULL;
/* Address of start of the most recently finished expression.
This tells, e.g., postfix * where to find the start of its
operand. Reset at the beginning of groups and alternatives. */
- unsigned char *laststart = 0;
+ unsigned char *laststart = NULL;
/* Address of beginning of regexp, or inside of last group. */
unsigned char *begalt;
@@ -1107,7 +1107,7 @@ regex_compile (pattern, size, syntax, bufp)
/* Address of the place where a forward jump should go to the end of
the containing expression. Each alternative of an `or' -- except the
last -- ends with a forward jump of this sort. */
- unsigned char *fixup_alt_jump = 0;
+ unsigned char *fixup_alt_jump = NULL;
/* Counts open-groups as they are encountered. Remembered for the
matching close-group on the compile stack, so the same register