Changeset View
Changeset View
Standalone View
Standalone View
contrib/tcp_wrappers/fakelog.c
Show All 11 Lines | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include "mystdarg.h" | #include "mystdarg.h" | ||||
/* openlog - dummy */ | /* openlog - dummy */ | ||||
/* ARGSUSED */ | /* ARGSUSED */ | ||||
void openlog(name, logopt, facility) | void openlog(char *name, int logopt, int facility) | ||||
char *name; | |||||
int logopt; | |||||
int facility; | |||||
{ | { | ||||
/* void */ | /* void */ | ||||
} | } | ||||
/* vsyslog - format one record */ | /* vsyslog - format one record */ | ||||
void vsyslog(severity, fmt, ap) | void vsyslog(int severity, char *fmt, va_list ap) | ||||
int severity; | |||||
char *fmt; | |||||
va_list ap; | |||||
{ | { | ||||
char buf[BUFSIZ]; | char buf[BUFSIZ]; | ||||
vprintf(percent_m(buf, fmt), ap); | vprintf(percent_m(buf, fmt), ap); | ||||
printf("\n"); | printf("\n"); | ||||
fflush(stdout); | fflush(stdout); | ||||
} | } | ||||
Show All 21 Lines |