[PATCH 2/2] utils: cleanup main daemon exit codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

some of them are not in use anymore and can be dropped.

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
 exec/main.c |    2 +-
 exec/util.h |   11 +----------
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/exec/main.c b/exec/main.c
index e957831..9ffc353 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -1037,7 +1037,7 @@ int main (int argc, char **argv, char **envp)
 
 	if (icmap_init() != CS_OK) {
 		log_printf (LOGSYS_LEVEL_ERROR, "Corosync Executive couldn't initialize configuration component.");
-		corosync_exit_error (COROSYNC_DONE_OBJDB);
+		corosync_exit_error (COROSYNC_DONE_ICMAP);
 	}
 
 	/*
diff --git a/exec/util.h b/exec/util.h
index 36a1a8a..a6e3593 100644
--- a/exec/util.h
+++ b/exec/util.h
@@ -46,20 +46,11 @@ extern cs_time_t clust_time_now(void);
 
 enum e_corosync_done {
 	COROSYNC_DONE_EXIT = 0,
-	COROSYNC_DONE_UID_DETERMINE = 1,
-	COROSYNC_DONE_GID_DETERMINE = 2,
-	COROSYNC_DONE_MEMPOOL_INIT = 3,
 	COROSYNC_DONE_FORK = 4,
-	COROSYNC_DONE_LIBCOROSYNC_SOCKET = 5,
-	COROSYNC_DONE_LIBCOROSYNC_BIND = 6,
-	COROSYNC_DONE_READKEY = 7,
 	COROSYNC_DONE_MAINCONFIGREAD = 8,
 	COROSYNC_DONE_LOGSETUP = 9,
-	COROSYNC_DONE_AMFCONFIGREAD = 10,
-	COROSYNC_DONE_DYNAMICLOAD = 11,
-	COROSYNC_DONE_OBJDB = 12,
+	COROSYNC_DONE_ICMAP = 12,
 	COROSYNC_DONE_INIT_SERVICES = 13,
-	COROSYNC_DONE_OUT_OF_MEMORY = 14,
 	COROSYNC_DONE_FATAL_ERR = 15,
 	COROSYNC_DONE_DIR_NOT_PRESENT = 16,
 	COROSYNC_DONE_AQUIRE_LOCK = 17,
-- 
1.7.7.6

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux