summaryrefslogtreecommitdiff
path: root/rpm-qo.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-11-20 20:18:22 +0000
committerjbj <devnull@localhost>1998-11-20 20:18:22 +0000
commita15a36abd12dba7dcf5cab390100dfcbc16dd6b8 (patch)
tree95578f21fd63f1fd2afdc18d1019d9346bc695a9 /rpm-qo.c
parent8f2a5b4031cba427d46b8d19a8da5d30eddb2f4a (diff)
downloadrpm-a15a36abd12dba7dcf5cab390100dfcbc16dd6b8.tar.gz
rpm-a15a36abd12dba7dcf5cab390100dfcbc16dd6b8.tar.bz2
rpm-a15a36abd12dba7dcf5cab390100dfcbc16dd6b8.zip
Sanity.
CVS patchset: 2551 CVS date: 1998/11/20 20:18:22
Diffstat (limited to 'rpm-qo.c')
-rw-r--r--rpm-qo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpm-qo.c b/rpm-qo.c
index 62a08f6c5..a879b8211 100644
--- a/rpm-qo.c
+++ b/rpm-qo.c
@@ -36,7 +36,7 @@ static void argerror(char * desc);
static void argerror(char * desc) {
fprintf(stderr, _("rpm: %s\n"), desc);
- exit(1);
+ exit(EXIT_FAILURE);
}
void printHelp(void);
@@ -176,10 +176,10 @@ int main(int argc, char ** argv) {
/* reading this early makes it easy to override */
if (rpmReadConfigFiles(rcfile, arch, os, building))
- exit(1);
+ exit(EXIT_FAILURE);
if (showrc) {
rpmShowRC(stdout);
- exit(0);
+ exit(EXIT_SUCCESS);
}
while (1) {
@@ -346,7 +346,7 @@ int main(int argc, char ** argv) {
if (help) printHelp();
if (badOption)
- exit(1);
+ exit(EXIT_FAILURE);
if (queryScripts) {
queryFor |= QUERY_FOR_SCRIPTS;