From d9d142a7ad0bade65b6f8b777259e203dc6d5301 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Thu, 10 Apr 2025 18:58:30 -0500 Subject: Overhaul makefile --- src/shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared.c') diff --git a/src/shared.c b/src/shared.c index 093e766..bec0354 100644 --- a/src/shared.c +++ b/src/shared.c @@ -6,7 +6,7 @@ #include #include -static enum XALLOC_TYPE { +enum XALLOC_TYPE { XALLOC_INVAL, // Default when unset XALLOC_MALLOC, @@ -120,7 +120,7 @@ int rwbuf(char **str, unsigned long int initsize, int fd) { int wwbuf(int fd, const unsigned char *buf, int len) { int total = 0; int left = len; - int n; + int n = -1; while(total < len) { if((n = write(fd, buf + total, left)) < 0) -- cgit v1.2.3