From c07461337363d7c3e28bac53e73c16d038903e87 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 3 Jul 2025 10:42:10 +0300 Subject: ImpOwOments - Use better thing for compiling - Remove all those unneeded function definitions bloating my beautiful perfect code --- Makefile | 2 +- buc.c | 1 - bus.c | 2 -- 3 files changed, 1 insertion(+), 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 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 #include -atoi(), err(), warn(), warnx(), read(), write(), close(); - #define SOCKETS_MAX 128 #define BUFFER_SIZE 512 -- cgit 1.4.1