aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-01-22 21:15:10 -0500
committerCameron Katri <me@cameronkatri.com>2022-01-22 21:15:10 -0500
commit253429e84ebe40dc6a959dc0c60b2f89ec49b55d (patch)
tree5b0c16ff2b86b8700e06c02312241daabe3ac1f8
parentc4110ab04551f0e2583b45af0fec237fbe20b7e3 (diff)
downloadopendircolors-253429e84ebe40dc6a959dc0c60b2f89ec49b55d.tar.gz
opendircolors-253429e84ebe40dc6a959dc0c60b2f89ec49b55d.tar.zst
opendircolors-253429e84ebe40dc6a959dc0c60b2f89ec49b55d.zip
Fix some errorsHEADmaster
-rw-r--r--common.c1
-rw-r--r--opendircolors.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/common.c b/common.c
index 56e59d3..fb96d36 100644
--- a/common.c
+++ b/common.c
@@ -39,7 +39,6 @@ parseansi(char *ansi, struct color *color)
{
long long num;
char *token;
- const char *errstr;
bool bold = false, underline = false;
color->fg = 'x';
diff --git a/opendircolors.c b/opendircolors.c
index 634726f..97cc5ca 100644
--- a/opendircolors.c
+++ b/opendircolors.c
@@ -44,7 +44,7 @@ static void usage(const char *);
// clang-format off
static const struct option long_options[] = {
{ "help", no_argument, NULL, 'h' },
- { "bourne-shell", no_argument, NULL },
+ { "bourne-shell", no_argument, NULL, 0 },
{ "sh", no_argument, NULL, 'b' },
{ "csh", no_argument, NULL, 'c' },
{ "c-shell", no_argument, NULL, 'c' },