diff options
| author | liuwentan <[email protected]> | 2023-02-03 17:28:14 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-02-03 17:28:14 +0800 |
| commit | 57f0a0581abc6a5d185312b8322d958e9d19428b (patch) | |
| tree | ae6929aafc6eae64fe92e6ae83dbb61f968b3bbd /tools | |
| parent | cca7d882e1a64e3928a093acb09a97fb9d4f1c49 (diff) | |
unfinished work
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/maat_redis_tool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/maat_redis_tool.cpp b/tools/maat_redis_tool.cpp index 68306c6..17b5ece 100644 --- a/tools/maat_redis_tool.cpp +++ b/tools/maat_redis_tool.cpp @@ -5,7 +5,6 @@ #include <sys/types.h> #include <sys/stat.h> -#include "utils.h" #include "maat_rule.h" #include "maat_utils.h" #include "maat_command.h" @@ -70,7 +69,7 @@ void read_rule_from_redis(redisContext *c, long long desire_version, const char int i = 0; int ret = 0; int line_count = 0; - int update_type = CM_UPDATE_TYPE_INC; + int update_type = MAAT_UPDATE_TYPE_INC; long long version = 0; const char *cur_table = NULL; char foreign_files_dir[256] = {0}; @@ -95,7 +94,7 @@ void read_rule_from_redis(redisContext *c, long long desire_version, const char return; } - assert(update_type == CM_UPDATE_TYPE_FULL); + assert(update_type == MAAT_UPDATE_TYPE_FULL); printf("MAAT Version: %lld, key number: %d\n", version, rule_num); if (0 == rule_num) { goto clean_up; |
