diff options
-rw-r--r-- | src/filedb.c | 1 | ||||
-rw-r--r-- | src/main-cynarad.c | 2 | ||||
-rw-r--r-- | src/rcyn-server.c | 2 | ||||
-rw-r--r-- | src/rcyn-server.h | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/src/filedb.c b/src/filedb.c index 2a4de33..7e1c34d 100644 --- a/src/filedb.c +++ b/src/filedb.c @@ -492,6 +492,7 @@ apply_itf( rule->expire = time2exp(value.expire); filedb->need_cleanup = true; filedb->is_changed = true; + filedb->frules.saved = (uint32_t)((void*)rule - filedb->frules.buffer); return; case Anydb_Action_Remove_And_Continue: *rule = filedb->rules[--filedb->rules_count]; diff --git a/src/main-cynarad.c b/src/main-cynarad.c index 772fed6..53bea31 100644 --- a/src/main-cynarad.c +++ b/src/main-cynarad.c @@ -332,7 +332,7 @@ int main(int ac, char **av) /* initialize server */ setvbuf(stderr, NULL, _IOLBF, 1000); - rcyn_server_log = flog; + rcyn_server_log = (bool)flog; signal(SIGPIPE, SIG_IGN); /* avoid SIGPIPE! */ rc = rcyn_server_create(&server, spec_socket_admin, spec_socket_check, spec_socket_agent); if (rc < 0) { diff --git a/src/rcyn-server.c b/src/rcyn-server.c index d23c4fb..6974265 100644 --- a/src/rcyn-server.c +++ b/src/rcyn-server.c @@ -40,7 +40,7 @@ #include "pollitem.h" /** should log? */ -int +bool rcyn_server_log = 0; /** local enumeration of socket/client kind */ diff --git a/src/rcyn-server.h b/src/rcyn-server.h index b702b73..34cd46a 100644 --- a/src/rcyn-server.h +++ b/src/rcyn-server.h @@ -22,7 +22,7 @@ struct rcyn_server; typedef struct rcyn_server rcyn_server_t; extern -int +bool rcyn_server_log; extern |