Skip to content

Commit

Permalink
Merge pull request #18 from mid-kid/master
Browse files Browse the repository at this point in the history
Changes for new devkitARM and ctrulib
  • Loading branch information
mtheall committed Feb 27, 2015
2 parents 5caad9a + 59cbc2e commit f505422
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.3ds
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 3 additions & 4 deletions source/ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f505422

Please sign in to comment.