Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Nov 9, 2023
1 parent ee10eb0 commit 1cca265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ifndef NDEBUG
CFLAGS += -g
endif
MANUAL = trurl.1
#CFLAGS += -pedantic -Wcast-align -Wconversion -Wdeclaration-after-statement -Wdouble-promotion -Wempty-body -Wendif-labels -Wenum-conversion -Wfloat-equal -Wignored-qualifiers -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-format-nonliteral -Wno-long-long -Wno-multichar -Wno-sign-conversion -Wno-system-headers -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wundef -Wunused -Wunused-const-variable -Wvla -Wwrite-strings

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
Expand Down
2 changes: 1 addition & 1 deletion trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ static void trurl_cleanup_options(struct option *o)

static void errorf_low(char *fmt, va_list ap)
{
fputs(ERROR_PREFIX, stderr);
vfprintf(stderr, fmt, ap);
fputs("\n" ERROR_PREFIX "Try " PROGNAME " -h for help\n", stderr);
}
Expand All @@ -303,7 +304,6 @@ static void errorf(struct option *o, int exit_code, char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fputs(ERROR_PREFIX, stderr);
errorf_low(fmt, ap);
va_end(ap);
trurl_cleanup_options(o);
Expand Down

0 comments on commit 1cca265

Please sign in to comment.