Changeset d857961480f92ca18f2038fff87f7ae88713872c
- Timestamp:
- 11/25/09 05:04:48
(4 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1259125488 +0000
- git-parent:
[e944e6d871dcff933a8da92b6efd7834bce03e59]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1259125488 +0000
- Message:
register this callback before we use it the first time
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8ad126b |
rd857961 |
|
| 102 | 102 | void |
|---|
| 103 | 103 | noit_conf_watch_and_journal_watchdog(int (*f)(void *), void *c) { |
|---|
| | 104 | static int callbacknamed = 0; |
|---|
| 104 | 105 | struct recurrent_journaler *rj; |
|---|
| 105 | 106 | struct timeval __now; |
|---|
| | 107 | |
|---|
| | 108 | if(!callbacknamed) { |
|---|
| | 109 | callbacknamed = 1; |
|---|
| | 110 | eventer_name_callback("noit_conf_watch_config_and_journal", |
|---|
| | 111 | noit_conf_watch_config_and_journal); |
|---|
| | 112 | } |
|---|
| 106 | 113 | rj = calloc(1, sizeof(*rj)); |
|---|
| 107 | 114 | rj->journal_config = f; |
|---|