- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
#ifdef DEBUG
static int (*printfn)(FILE *stream, const char *format, ...) = fprintf;
#else
static void (*printfn)(int priority, const char *format, ...) = syslog;
#endif
/* somewhere in getopt() options */
#ifdef DEBUG
printfn = noprintf;
#else
printfn = nosyslog;
#endif
/* elsewhere in a common header file */
#ifdef DEBUG
#undef LOG_ERR
#undef LOG_WARNING
#undef LOG_INFO
#define LOG_ERR stderr
#define LOG_WARNING stderr
#define LOG_INFO stderr
#endif
void nosyslog(int priority, const char *format, ...)
{
(void)priority;
(void)format;
}
int noprintf(FILE *stream, const char *format, ...)
{
(void)stream;
(void)format;
return 0;
}
HighVoltageCock 29.07.2018 16:04 # −1
666_N33D135 29.07.2018 17:05 # 0
guest8 29.07.2018 18:23 # −999
roskomgovno 29.07.2018 17:44 # 0
roskomgovno 29.07.2018 17:43 # −1