File: null_syslog.c

package info (click to toggle)
socks4-server 4.3.beta2-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,532 kB
  • ctags: 1,777
  • sloc: ansic: 19,309; makefile: 400; sh: 69
file content (45 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
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
36
37
38
39
40
41
42
43
44
45
/* null_syslog */

/* null_syslog.c	-	<edwin@cs.ruu.nl>	05/Nov/94
 *	provides empty syslog() functions for those who
 *	would rather not have the rClient programs logging
 *	to the syslog daemon.
 */

/* varargs/stdarg, let's try to unify ANSI/non-ANSI variants here */
#ifdef __STDC__
#include <stdarg.h>
#define VARARGS(func,type,arg) func(type arg, ...)
#define VASTART(ap,type,name)  va_start(ap,name)
#define VAEND(ap)              va_end(ap)
#else
#include <varargs.h>
#define VARARGS(func,type,arg) func(va_alist) va_dcl
#define VASTART(ap,type,name)  {type name; va_start(ap); name = va_arg(ap, type)
#define VAEND(ap)              va_end(ap);}
#endif

socks_0openlog(ident, log_opt, fac)
	char	*ident;
	int	log_opt,
		fac;
{
	/* empty */
}

socks_0closelog()
{
	/* empty */
}

VARARGS(socks_0syslog, int, prio)
{
	va_list ap;

	VASTART(ap, int, prio);
	/* empty */
	VAEND(ap);
}