Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use sysexits
Matthew Seaman committed 13 years ago
commit 5d720ae1fb2cac99d20a4faaaef61224f7210106
parent 6f14f8c885e6e488a4240a8b9b796742eaf67e9b
1 file changed +3 -2
modified pkg/clean.c
@@ -31,6 +31,7 @@
#include <pkg.h>
#include <stdbool.h>
#include <string.h>
+
#include <sysexits.h>
#include <unistd.h>

#include "pkgcli.h"
@@ -55,7 +56,7 @@ exec_clean(int argc, char **argv)
	char *paths[2];
	char *repopath;
	bool to_delete;
-
	int retcode = 1;
+
	int retcode = EX_SOFTWARE;
	int ret;

	(void)argc;
@@ -123,7 +124,7 @@ exec_clean(int argc, char **argv)
		pkgdb_it_free(it);
	}

-
	retcode = 0;
+
	retcode = EX_OK;

	cleanup:
	if (pkg != NULL)