From ca3dde98e9a48cc165313d3c9055ade0e450af67 Mon Sep 17 00:00:00 2001 From: syb0rg Date: Wed, 23 Apr 2014 19:39:56 -0500 Subject: [PATCH] Change compiler standard to C11 and add optimization level 3 to the flags. --- src/Makefile | 2 +- src/base64u.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 5fbfbbd..10df8d1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,7 +10,7 @@ HEAD_COMMIT = `git rev-parse --short HEAD` LIBPATH = -L. LDFLAGS += -lz `sh osflags $(TARGETOS) link` $(LIBPATH) -CFLAGS += -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` -DGITREVISION=\"$(HEAD_COMMIT)\" +CFLAGS += --std=gnu11 -O3 -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` -DGITREVISION=\"$(HEAD_COMMIT)\" all: stateos $(CLIENT) $(SERVER) diff --git a/src/base64u.c b/src/base64u.c index 0c8de84..3c81e93 100644 --- a/src/base64u.c +++ b/src/base64u.c @@ -28,8 +28,7 @@ /* Note: the "unofficial" char is last here, which means that the \377 pattern in DOWNCODECCHECK1 ('Y' request) will properly test it. */ -static const char cb64[] = - "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789_"; +static const char cb64[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789_"; static unsigned char rev64[256]; static int reverse_init = 0;