Changeset 559e017dc530d5467cb14742be11d9f328bf4e01 for src/noit_main.c
- Timestamp:
- 09/27/11 04:20:44 (2 years ago)
- git-parent:
- Files:
-
- src/noit_main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/noit_main.c
r9267e43 r559e017 51 51 #include "eventer/eventer.h" 52 52 53 static char **enable_logs; 53 #define MAX_CLI_LOGS 128 54 static char *enable_logs[MAX_CLI_LOGS]; 54 55 static int enable_logs_cnt = 0; 55 static char * *disable_logs;56 static char *disable_logs[MAX_CLI_LOGS]; 56 57 static int disable_logs_cnt = 0; 57 58 58 59 void 59 60 noit_main_enable_log(const char *name) { 61 if(enable_logs_cnt >= MAX_CLI_LOGS) return; 60 62 enable_logs[enable_logs_cnt++] = strdup(name); 61 63 } 62 64 void 63 65 noit_main_disable_log(const char *name) { 66 if(disable_logs_cnt >= MAX_CLI_LOGS) return; 64 67 disable_logs[disable_logs_cnt++] = strdup(name); 65 68 }
