summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2013-05-11 13:49:00 +0200
committerHarald Hoyer <harald@redhat.com>2013-05-28 14:34:44 +0200
commit8974102f6b4d59a29e01d080262cbbb0a08571d3 (patch)
tree6bc1feae69589e57f7b6b04abc043ab9236b7a2f
parent599182b10870a826360091246f0a5f26c691f690 (diff)
downloaddracut-8974102f6b4d59a29e01d080262cbbb0a08571d3.tar.gz
dracut-8974102f6b4d59a29e01d080262cbbb0a08571d3.tar.bz2
dracut-8974102f6b4d59a29e01d080262cbbb0a08571d3.zip
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.
-rw-r--r--install/dracut-install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/dracut-install.c b/install/dracut-install.c
index 33fad4a4..0b9502e8 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;