diff options
| author | Rosen Penev <[email protected]> | 2019-05-03 10:59:55 -0700 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2019-05-05 16:53:27 +0200 |
| commit | b5e8a481d4c9f9cdb26513784c09c57797fa2f46 (patch) | |
| tree | 99a96f49994810a8f66b9dca549dc44a821e3ea9 /lib | |
| parent | 4628b0ea03a0d029cccbcda1cbfc450b4c5ad1bf (diff) | |
lib/color: Fix compilation with uClibc
elfutils passed -Werror and this call errors on uClibc with a mismatching
pointer type. Cast to char * to fix.
Signed-off-by: Rosen Penev <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ChangeLog | 4 | ||||
| -rw-r--r-- | lib/color.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 0914b2c6..7381860c 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2019-05-03 Rosen Penev <[email protected]> + + * color.c (parse_opt): Cast program_invocation_short_name to char *. + 2018-11-04 Mark Wielaard <[email protected]> * bpf.h: Add BPF_JLT, BPF_JLE, BPF_JSLT and BPF_JSLE. diff --git a/lib/color.c b/lib/color.c index 9ffbf55f..20b9698a 100644 --- a/lib/color.c +++ b/lib/color.c @@ -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); } } |
