about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--buc.c1
-rw-r--r--bus.c2
3 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5fd5245..528c21a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ RM ?= rm -f
 PREFIX ?= /usr/local/
 BINDIR ?= ${PREFIX}/bin
 
-CFLAGS += -ansi
+CC = cc -ansi -fno-builtin
 
 .PHONY: all
 all: buc bus
diff --git a/buc.c b/buc.c
index 626fa2e..b8557b0 100644
--- a/buc.c
+++ b/buc.c
@@ -4,7 +4,6 @@
 #include <poll.h>
 
 char buf[512]; progress;
-atoi(), err(), exit(), read(), write();
 
 #define	readbuf(sock)	((((progress = read((sock), buf, sizeof(buf))) == -1) && err(1, "read()") || !progress && exit(0)), progress)
 #define	sendbuf(sock, size)	(write(sock, buf, size) == -1 && err(1, "write()"))
diff --git a/bus.c b/bus.c
index f05292b..60e35f7 100644
--- a/bus.c
+++ b/bus.c
@@ -4,8 +4,6 @@
 #include <sys/socket.h>
 #include <poll.h>
 
-atoi(), err(), warn(), warnx(), read(), write(), close();
-
 #define SOCKETS_MAX 128
 #define BUFFER_SIZE 512