comparison stream/cache2.c @ 33617:c77bf171b354

cache2: Surround conditionally used functions by appropriate #ifdefs. This avoids 'defined but not used' warnings without FORKED_CACHE set.
author diego
date Wed, 22 Jun 2011 13:48:25 +0000
parents 850a3272e10d
children 5fda3578d1c5
comparison
equal deleted inserted replaced
33616:4221981ad74c 33617:c77bf171b354
366 c->stream = NULL; 366 c->stream = NULL;
367 shared_free(s->cache_data, sizeof(cache_vars_t)); 367 shared_free(s->cache_data, sizeof(cache_vars_t));
368 s->cache_data = NULL; 368 s->cache_data = NULL;
369 } 369 }
370 370
371 #if FORKED_CACHE
371 static void exit_sighandler(int x){ 372 static void exit_sighandler(int x){
372 // close stream 373 // close stream
373 exit(0); 374 exit(0);
374 } 375 }
375 376
376 static void dummy_sighandler(int x) { 377 static void dummy_sighandler(int x) {
377 } 378 }
379 #endif
378 380
379 /** 381 /**
380 * Main loop of the cache process or thread. 382 * Main loop of the cache process or thread.
381 */ 383 */
382 static void cache_mainloop(cache_vars_t *s) { 384 static void cache_mainloop(cache_vars_t *s) {