From 8974102f6b4d59a29e01d080262cbbb0a08571d3 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 11 May 2013 13:49:00 +0200 Subject: [PATCH] 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. --- install/dracut-install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/dracut-install.c b/install/dracut-install.c index 33fad4a..0b9502e 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -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;