]> git.mdlowis.com Git - proto/aos.git/commitdiff
tweaked optimization and fixed some errors
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 15 Dec 2021 21:54:08 +0000 (16:54 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 15 Dec 2021 21:54:08 +0000 (16:54 -0500)
bin/dial.c
config.mk
lib/a/Options_Parse.c

index 21bd61b421bd21bc373143edb4dd89da779f68a4..7e41df8285d477ac4c9157405ec86f01e7d6dd84 100644 (file)
@@ -20,7 +20,8 @@ int copy_data(int fromfd, int tofd, int events)
         long nread;
         if ((nread = read(fromfd, buf, sizeof(buf))) > 0)
         {
-            write(tofd, buf, nread);
+            long nwrite = write(tofd, buf, nread);
+            (void)nwrite;
         }
         else
         {
index cf179ab1199a67e10c6722c7bfc6c4ab0d4241a6..fa55ed3b198b7c9a0c4ba9f71b87c3f83475aa92 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -3,7 +3,7 @@ OUTDIR = build
 BINDIR = $(OUTDIR)/bin
 
 CC = cc
-CFLAGS = -g -Wall -Wextra -Werror
+CFLAGS = -O2 -g -Wall -Wextra -Werror
 CPPFLAGS = -Iinc/ -I/usr/include/freetype2
 
 AR = ar
index 0852d14dcd11dbdee3aa66692d04398e9db0dc8d..754927e8904d6674e177d51135fd625c290e20bc 100644 (file)
@@ -9,7 +9,6 @@ static void HandleOption(int s, char* l, char* arg)
     }
     else
     {
-        printf(" --%s=%s\n", l, arg);
         set_option(s, l, arg);
     }
 }