]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
lib/color: Fix compilation with uClibc
authorRosen Penev <rosenp@gmail.com>
Fri, 3 May 2019 17:59:55 +0000 (10:59 -0700)
committerMark Wielaard <mark@klomp.org>
Sun, 5 May 2019 14:53:27 +0000 (16:53 +0200)
elfutils passed -Werror and this call errors on uClibc with a mismatching
pointer type. Cast to char * to fix.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lib/ChangeLog
lib/color.c

index 0914b2c6e6ce907378b4bd9e39bfc7bf00758cf1..7381860c67884e1315cb16f699ecaaa3e7da1f09 100644 (file)
@@ -1,3 +1,7 @@
+2019-05-03  Rosen Penev  <rosenp@gmail.com>
+
+       * color.c (parse_opt): Cast program_invocation_short_name to char *.
+
 2018-11-04  Mark Wielaard  <mark@klomp.org>
 
        * bpf.h: Add BPF_JLT, BPF_JLE, BPF_JSLT and BPF_JSLE.
index 9ffbf55ffbbc3827e08fa5f55b33f455aae8aeb3..20b9698a9228e6af99414fd7532fbd9d17e71731 100644 (file)
@@ -132,7 +132,7 @@ valid arguments are:\n\
   - 'auto', 'tty', 'if-tty'\n"),
                     program_invocation_short_name, arg);
              argp_help (&color_argp, stderr, ARGP_HELP_SEE,
-                        program_invocation_short_name);
+                        (char *) program_invocation_short_name);
              exit (EXIT_FAILURE);
            }
        }