From: Kamil Rytarowski Date: Sat, 11 May 2013 11:49:00 +0000 (+0200) Subject: Use consistiently termination code macros X-Git-Tag: 028~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8974102f6b4d59a29e01d080262cbbb0a08571d3;p=thirdparty%2Fdracut.git 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. --- diff --git a/install/dracut-install.c b/install/dracut-install.c index 33fad4a40..0b9502e8f 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;