Fixed: #998 bnp_make returns 1 when successful

This commit is contained in:
kervala 2010-06-23 09:10:49 +02:00
parent 964ffc2183
commit 5c913341e2

View file

@ -359,7 +359,7 @@ int main (int nNbArg, char **ppArgs)
gBNPHeader.OffsetFromBeginning = 0;
packSubRecurse();
gBNPHeader.append (gDestBNPFile);
return 1;
return 0;
}
if ((strcmp(ppArgs[1], "/u") == 0) || (strcmp(ppArgs[1], "/U") == 0) ||
@ -405,7 +405,7 @@ int main (int nNbArg, char **ppArgs)
unpack (dirName);
return 1;
return 0;
}
if ((strcmp(ppArgs[1], "/l") == 0) || (strcmp(ppArgs[1], "/L") == 0) ||
@ -450,7 +450,7 @@ int main (int nNbArg, char **ppArgs)
for (i = 0; i < gBNPHeader.Files.size(); ++i)
printf ("%s\n", gBNPHeader.Files[i].Name.c_str());
return 1;
return 0;
}
usage ();