Use consistiently termination code macros

Operate in install_all and install_one consequently on EXIT_SUCCESS
and EXIT_FAILURE termination code macros as they are meant to be
returned from these functions.
master
Kamil Rytarowski 2013-05-11 13:49:00 +02:00 committed by Harald Hoyer
parent 599182b108
commit 8974102f6b
1 changed files with 2 additions and 2 deletions

View File

@ -757,7 +757,7 @@ static char *find_binary(const char *src)

static int install_one(const char *src, const char *dst)
{
int r = 0;
int r = EXIT_SUCCESS;
int ret;

if (strchr(src, '/') == NULL) {
@ -786,7 +786,7 @@ static int install_one(const char *src, const char *dst)

static int install_all(int argc, char **argv)
{
int r = 0;
int r = EXIT_SUCCESS;
int i;
for (i = 0; i < argc; i++) {
int ret;