Changeset d857961480f92ca18f2038fff87f7ae88713872c

Show
Ignore:
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
  • src/noit_conf.c

    r8ad126b rd857961  
    102102void 
    103103noit_conf_watch_and_journal_watchdog(int (*f)(void *), void *c) { 
     104  static int callbacknamed = 0; 
    104105  struct recurrent_journaler *rj; 
    105106  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  } 
    106113  rj = calloc(1, sizeof(*rj)); 
    107114  rj->journal_config = f;