]> mj.ucw.cz Git - libucw.git/commitdiff
Daemon: Let daemon actions be numbered from 1
authorMartin Mares <mj@ucw.cz>
Wed, 18 Jul 2012 09:15:10 +0000 (11:15 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 18 Jul 2012 09:15:10 +0000 (11:15 +0200)
This way, 0 can be used as "undefined".

ucw/daemon.h

index dc2fd746eb39342287293041b31c76f9a15f67be..47a0c1e9ab58ccd1d80923f628b6be01bc833f9f 100644 (file)
@@ -65,7 +65,7 @@ struct daemon_control_params {
 };
 
 enum daemon_control_action {
-  DAEMON_CONTROL_CHECK,
+  DAEMON_CONTROL_CHECK = 1,
   DAEMON_CONTROL_START,
   DAEMON_CONTROL_STOP,
   DAEMON_CONTROL_SIGNAL,