compat/regex/regexec.c: Fix some sparse warnings
commit5b62e6374aabb20297b22bdd72952ff582b2198b
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sat, 27 Apr 2013 18:43:05 +0000 (27 19:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Apr 2013 19:24:18 +0000 (28 12:24 -0700)
tree991e65f26ecd8dbdfae9a486d50d0e5b2c5af485
parentb75cdfaa882a00f2274e74b21c1a9927d184ed29
compat/regex/regexec.c: Fix some sparse warnings

Sparse issues an "Using plain integer as NULL pointer" warning along
with two "symbol was not declared. Should it be static?" type warnings
for the 'merge_state_with_log' and 'find_recover_state' functions.

In order to suppress the warnings, we replace the use of '0' as a null
pointer constant with NULL and add the static modifier to the function
definitions.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regexec.c