use SS_RC_FIRST and SS_RC_LAST

This commit is contained in:
Andreas Steffen
2009-08-06 16:42:44 +02:00
parent 3646c8a159
commit 5d8306de68
2 changed files with 4 additions and 2 deletions
+3
View File
@@ -35,6 +35,9 @@
#define SS_RC_DAEMON_INTEGRITY 65 #define SS_RC_DAEMON_INTEGRITY 65
#define SS_RC_INITIALIZATION_FAILED 66 #define SS_RC_INITIALIZATION_FAILED 66
#define SS_RC_FIRST SS_RC_LIBSTRONGSWAN_INTEGRITY
#define SS_RC_LAST SS_RC_INITIALIZATION_FAILED
/** /**
* Number of bits in a byte * Number of bits in a byte
*/ */
+1 -2
View File
@@ -103,8 +103,7 @@ static void fsig(int signal)
else if (WIFEXITED(status)) else if (WIFEXITED(status))
{ {
exit_status = WEXITSTATUS(status); exit_status = WEXITSTATUS(status);
if (exit_status >= SS_RC_LIBSTRONGSWAN_INTEGRITY && if (exit_status >= SS_RC_FIRST && exit_status <= SS_RC_LAST)
exit_status <= SS_RC_INITIALIZATION_FAILED)
{ {
_action_ = FLAG_ACTION_QUIT; _action_ = FLAG_ACTION_QUIT;
} }