From 9d873cf9b5e96f0a7626bbc45974843e73f14e0f Mon Sep 17 00:00:00 2001 From: OleLL Date: Mon, 30 Oct 2017 23:30:51 +0100 Subject: [PATCH 1/2] Fixed missing atoi + changed Init to InitColorChord --- embeddedlinux/embeddedcc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embeddedlinux/embeddedcc.c b/embeddedlinux/embeddedcc.c index ee663eb..4ce7ea5 100644 --- a/embeddedlinux/embeddedcc.c +++ b/embeddedlinux/embeddedcc.c @@ -11,6 +11,7 @@ #include #include #include +#include // Added by [olel] for atoi #include "embeddedout.h" struct sockaddr_in servaddr; @@ -64,7 +65,7 @@ int main( int argc, char ** argv ) connect( sock, (struct sockaddr *)&servaddr, sizeof(servaddr) ); - Init(); + InitColorChord(); // Changed by [olel] cause this was changed in embeddednf while( ( ci = getchar() ) != EOF ) { From ad4f2d6d093e0f1f3523748cfba0e730226e7d46 Mon Sep 17 00:00:00 2001 From: OleLL Date: Mon, 30 Oct 2017 23:31:41 +0100 Subject: [PATCH 2/2] Removed -m32 to allow also 64 bit architectures --- embeddedlinux/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddedlinux/Makefile b/embeddedlinux/Makefile index 8ccdf93..961cce3 100644 --- a/embeddedlinux/Makefile +++ b/embeddedlinux/Makefile @@ -7,7 +7,7 @@ LDFLAGS:= -s -Wl,--relax -Wl,-Map=test.map -Wl,--gc-sections -ffunction-section embeddedcc : ../embeddedcommon/embeddednf.c ../embeddedcommon/DFT32.c embeddedcc.c ../embeddedcommon/embeddedout.c - gcc -o $@ $^ $(CFLAGS) $(LDFLAGS) -m32 + gcc -o $@ $^ $(CFLAGS) $(LDFLAGS) dummy_leds : dummy_leds.c gcc -o $@ $^ -lX11 -lpthread $(CFLAGS) $(LDFLAGS)