From c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 18 Jun 2008 22:30:59 +0000 Subject: Factor out scramble / mkboot functions to allow easier reuse (for rbutil). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17732 a1c6a512-1295-4272-9138-f99709370657 --- tools/scramble.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/scramble.c') diff --git a/tools/scramble.c b/tools/scramble.c index c02c78916b..5263809e41 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -287,8 +287,7 @@ int main (int argc, char** argv) /* iRiver code dealt with in the iriver.c code */ iname = argv[2]; oname = argv[3]; - iriver_encode(iname, oname, FALSE); - return 0; + return (iriver_encode(iname, oname, FALSE) != 0) ? -1 : 0; } else if(!strcmp(argv[1], "-gigabeat")) { /* iRiver code dealt with in the iriver.c code */ -- cgit v1.2.3