aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--cat.h1
-rw-r--r--cfn.c3
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 <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
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;
}