]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-compat-util: fix CONST_OUTPARAM typo and indentation
authorJeff King <peff@peff.net>
Sat, 4 Apr 2026 05:42:11 +0000 (01:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Apr 2026 15:22:57 +0000 (08:22 -0700)
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>
git-compat-util.h

index 4ddac619921a712297bc5c9bbec8574c89657588..ae1bdc90a4cd6ab1e03b3afdf27ad21d2ed18fed 100644 (file)
@@ -464,7 +464,7 @@ report_fn get_warn_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
  * 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.
  */
 #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.