git-compat-util: fix CONST_OUTPARAM typo and indentation

There's a typo in the comment, making it hard to understand. And the
macro itself is indented with spaces rather than tab.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Jeff King 2026-04-04 01:42:11 -04:00 committed by Junio C Hamano
parent f1b8a4d108
commit 58589c20e5
1 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ report_fn get_warn_routine(void);
void set_die_is_recursing_routine(int (*routine)(void)); void set_die_is_recursing_routine(int (*routine)(void));


/* /*
* Check that an out-parameter that is "at least as const as" a matching * Check that an out-parameter is "at least as const as" a matching
* in-parameter. For example, skip_prefix() will return "out" that is a subset * in-parameter. For example, skip_prefix() will return "out" that is a subset
* of "str". So: * of "str". So:
* *
@ -476,7 +476,7 @@ void set_die_is_recursing_routine(int (*routine)(void));
* See the skip_prefix macro below for an example of use. * See the skip_prefix macro below for an example of use.
*/ */
#define CONST_OUTPARAM(in, out) \ #define CONST_OUTPARAM(in, out) \
((const char **)(0 ? ((*(out) = (in)),(out)) : (out))) ((const char **)(0 ? ((*(out) = (in)),(out)) : (out)))


/* /*
* If the string "str" begins with the string found in "prefix", return true. * If the string "str" begins with the string found in "prefix", return true.