Changeset 559e017dc530d5467cb14742be11d9f328bf4e01
- Timestamp:
- 09/27/11 04:20:44
(2 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1317097244 -0400
- git-parent:
[dd420f2b520fa3440154229a94853621fd202434]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1317097244 -0400
- Message:
use of these cause core dumps. testing testing testing.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| 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 | } |
|---|