Blame 0054-Use-consistiently-termination-code-macros.patch
|
Harald Hoyer |
75f812 |
From 8974102f6b4d59a29e01d080262cbbb0a08571d3 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
75f812 |
From: Kamil Rytarowski <n54@gmx.com>
|
|
Harald Hoyer |
75f812 |
Date: Sat, 11 May 2013 13:49:00 +0200
|
|
Harald Hoyer |
75f812 |
Subject: [PATCH] Use consistiently termination code macros
|
|
Harald Hoyer |
75f812 |
|
|
Harald Hoyer |
75f812 |
Operate in install_all and install_one consequently on EXIT_SUCCESS
|
|
Harald Hoyer |
75f812 |
and EXIT_FAILURE termination code macros as they are meant to be
|
|
Harald Hoyer |
75f812 |
returned from these functions.
|
|
Harald Hoyer |
75f812 |
---
|
|
Harald Hoyer |
75f812 |
install/dracut-install.c | 4 ++--
|
|
Harald Hoyer |
75f812 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
75f812 |
|
|
Harald Hoyer |
75f812 |
diff --git a/install/dracut-install.c b/install/dracut-install.c
|
|
Harald Hoyer |
75f812 |
index 33fad4a..0b9502e 100644
|
|
Harald Hoyer |
75f812 |
--- a/install/dracut-install.c
|
|
Harald Hoyer |
75f812 |
+++ b/install/dracut-install.c
|
|
Harald Hoyer |
75f812 |
@@ -757,7 +757,7 @@ static char *find_binary(const char *src)
|
|
Harald Hoyer |
75f812 |
|
|
Harald Hoyer |
75f812 |
static int install_one(const char *src, const char *dst)
|
|
Harald Hoyer |
75f812 |
{
|
|
Harald Hoyer |
75f812 |
- int r = 0;
|
|
Harald Hoyer |
75f812 |
+ int r = EXIT_SUCCESS;
|
|
Harald Hoyer |
75f812 |
int ret;
|
|
Harald Hoyer |
75f812 |
|
|
Harald Hoyer |
75f812 |
if (strchr(src, '/') == NULL) {
|
|
Harald Hoyer |
75f812 |
@@ -786,7 +786,7 @@ static int install_one(const char *src, const char *dst)
|
|
Harald Hoyer |
75f812 |
|
|
Harald Hoyer |
75f812 |
static int install_all(int argc, char **argv)
|
|
Harald Hoyer |
75f812 |
{
|
|
Harald Hoyer |
75f812 |
- int r = 0;
|
|
Harald Hoyer |
75f812 |
+ int r = EXIT_SUCCESS;
|
|
Harald Hoyer |
75f812 |
int i;
|
|
Harald Hoyer |
75f812 |
for (i = 0; i < argc; i++) {
|
|
Harald Hoyer |
75f812 |
int ret;
|