[Frugalware-git] pacman-g2: pacman-g2: rename the single argument to cleanup() as 'exitcode'

James Buren ryuo at frugalware.org
Wed May 16 21:29:15 CEST 2012


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=fdf9eb82e251e5ad6995fae3c620ca72cf83a5cf

commit fdf9eb82e251e5ad6995fae3c620ca72cf83a5cf
Author: James Buren <ryuo at frugalware.org>
Date:   Wed May 16 14:28:20 2012 -0500

pacman-g2: rename the single argument to cleanup() as 'exitcode'

diff --git a/src/pacman-g2/pacman-g2.c b/src/pacman-g2/pacman-g2.c
index d3749ba..4f7d33d 100644
--- a/src/pacman-g2/pacman-g2.c
+++ b/src/pacman-g2/pacman-g2.c
@@ -190,9 +190,9 @@ static void version(void)
printf("\n");
}

-static void cleanup(int signum)
+static void cleanup(int exitcode)
{
-	if(signum != 0 && config->op_d_vertest == 0) {
+	if(exitcode != 0 && config->op_d_vertest == 0) {
fprintf(stderr, "\n");
}

@@ -218,7 +218,7 @@ static void cleanup(int signum)
}
fflush(stdout);

-	exit(signum);
+	exit(exitcode);
}

static void signal_callback(int signum)


More information about the Frugalware-git mailing list