diff options
| author | Nakidai <nakidai@disroot.org> | 2025-07-03 10:42:10 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-07-03 10:42:10 +0300 |
| commit | c07461337363d7c3e28bac53e73c16d038903e87 (patch) | |
| tree | e26a0dd3166ea37e84ecd2efdae2260e7d0693ac | |
| parent | 55a180b3b35247a8ee2c12e94c19befdba09550b (diff) | |
| download | smalltcp-c07461337363d7c3e28bac53e73c16d038903e87.tar.gz smalltcp-c07461337363d7c3e28bac53e73c16d038903e87.zip | |
ImpOwOments
- Use better thing for compiling - Remove all those unneeded function definitions bloating my beautiful perfect code
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | buc.c | 1 | ||||
| -rw-r--r-- | bus.c | 2 |
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 |