From 59cbc2edfae171d9ea8756f2c5d943607aee50d1 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 26 Feb 2015 10:46:27 +0100 Subject: [PATCH] Changes for new devkitARM and ctrulib --- Makefile.3ds | 2 +- source/ftp.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile.3ds b/Makefile.3ds index 6f03a93..fc3d5c7 100644 --- a/Makefile.3ds +++ b/Makefile.3ds @@ -39,7 +39,7 @@ APP_AUTHOR := mtheall #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- -ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp +ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard CFLAGS := -g -Wall -O3 -mword-relocations \ -fomit-frame-pointer -ffast-math \ diff --git a/source/ftp.c b/source/ftp.c index 8ba832c..b889e3f 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -167,10 +167,9 @@ static const size_t num_ftp_commands = sizeof(ftp_commands)/sizeof(ftp_commands[ static inline int Errno(void) { - int err = SOC_GetErrno(); - if(err < 0) - return -err; - return err; + if(errno < 0) + return -errno; + return errno; } /*! compare ftp command descriptors