]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Use consistiently termination code macros
authorKamil Rytarowski <n54@gmx.com>
Sat, 11 May 2013 11:49:00 +0000 (13:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 12:34:44 +0000 (14:34 +0200)
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

index 33fad4a40eaa9896972f675ac771caedef9a79c8..0b9502e8f3db8312e5d5d433816b3b4f7556290e 100644 (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;