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 f4a7edfa37d130b08d49489cb8589b06860ccb57
parent 7e48f1ca2dff7a8a437dfee74f1dada3d9b1085a
2 files changed +5 -3
modified pkg/install.c
@@ -56,7 +56,7 @@ exec_install(int argc, char **argv)
	struct pkgdb *db = NULL;
	struct pkg_jobs *jobs = NULL;
	const char *reponame = NULL;
-
	int retcode = 1;
+
	int retcode = EX_SOFTWARE;
	int ch;
	bool yes = false;
	bool auto_update = true;
@@ -152,7 +152,7 @@ exec_install(int argc, char **argv)
		printf("%s", sbuf_data(messages));
	}

-
	retcode = 0;
+
	retcode = EX_OK;

	cleanup:
	pkg_jobs_free(jobs);
modified pkg/shell.c
@@ -25,7 +25,9 @@
 */

#include <stdio.h>
+
#include <sysexits.h>
#include <unistd.h>
+

#include <pkg.h>

#include "pkgcli.h"
@@ -41,5 +43,5 @@ int
exec_shell(int argc, char **argv)
{
	pkgdb_cmd(argc, argv);
-
	return EXIT_SUCCESS;
+
	return (EX_OK);
}