From e5f62421ee7f4e4b7f6b011600ccac75d37c47ee Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Fri, 28 Aug 2009 21:03:35 +0430 Subject: [PATCH] Makefile: util.c is no longer needed --- Makefile | 2 +- util.c | 8 -------- util.h | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 util.c diff --git a/Makefile b/Makefile index ff425f4..dce2d45 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ all: fbpad .c.o: $(CC) -c $(CFLAGS) $< term.o: vt102.c -fbpad: fbpad.o term.o pad.o draw.o util.o font.o +fbpad: fbpad.o term.o pad.o draw.o font.o $(CC) $(LDFLAGS) -o $@ $^ clean: rm -f *.o fbpad diff --git a/util.c b/util.c deleted file mode 100644 index 0475efb..0000000 --- a/util.c +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include - -void xerror(char *msg) -{ - perror(msg); - exit(1); -} diff --git a/util.h b/util.h index a7c182b..4968294 100644 --- a/util.h +++ b/util.h @@ -1,5 +1,3 @@ #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) - -void xerror(char *msg); -- 2.11.4.GIT