From d30057c838b664b0a1a08406f02fdd0f6548ef80 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 28 Feb 2016 13:58:44 +1300 Subject: Correct some pedantic errors --- Makefile | 4 ++-- cat.h | 1 + cfn.c | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5831686..218c2ed 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ CC = gcc -CFLAGS = -ansi -pedantic-errors +CFLAGS = -Wall -Wpedantic -ansi -pedantic-errors cat : main.o cfn.o cfd.o - gcc -o cat main.o cfn.o cfd.o + gcc $(CFLAGS) -o cat main.o cfn.o cfd.o clean : rm -f -- cat *.o diff --git a/cat.h b/cat.h index c8db240..2a2e494 100644 --- a/cat.h +++ b/cat.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/cfn.c b/cfn.c index ad6776e..9c04fb8 100644 --- a/cfn.c +++ b/cfn.c @@ -21,5 +21,8 @@ int cfn(const char *fn, void *buf) { perror(__FUNCTION__); return -1; } + + /* Done, assume success */ + return 0; } -- cgit v1.2.3