csv

Unnamed repository
Log | Files | Refs

commit 5cd26a74f359f4b33ac0a133fc041a0f49afdaee
parent 4e1d33e5487d561be4bfb5dfc962718d2689d512
Author: phoebos <ben@bvnf.space>
Date:   Sat,  2 Oct 2021 11:48:07 +0000

add warnings to Makefile

Diffstat:
MMakefile | 6+++---
Mcsv.c | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,5 @@ .POSIX: -X := ${CFLAGS} -CFLAGS = ${X} -Og -ggdb3 +XCFLAGS = $(CFLAGS) -Wall -Wextra -Wpedantic -Og -ggdb3 -csv: +csv: csv.c + $(CC) $(XCFLAGS) -o $@ $< diff --git a/csv.c b/csv.c @@ -18,7 +18,7 @@ read from stdin\n", argv[0]); f = stdin; } else { f = fopen(argv[1], "r"); - if (f < 0) { + if (f == NULL) { perror(argv[1]); return 1; }