summaryrefslogtreecommitdiff
path: root/pptpd-1.3.3/our_syslog.h
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-08-03 13:28:53 +0400
committerKozlov Dmitry <dima@server>2010-08-03 13:28:53 +0400
commit5a2d6079eba1c7e2a9479cb10d714b5a97bbfe4f (patch)
treee72134e47e1491580af15e3eccbba451f13fdd42 /pptpd-1.3.3/our_syslog.h
parentba8e1a64e75930a161afac9048e7d03b7f880644 (diff)
downloadaccel-ppp-xebd-5a2d6079eba1c7e2a9479cb10d714b5a97bbfe4f.tar.gz
accel-ppp-xebd-5a2d6079eba1c7e2a9479cb10d714b5a97bbfe4f.zip
initiating work on accel-pptpd, replacement of modified poptop
Diffstat (limited to 'pptpd-1.3.3/our_syslog.h')
-rw-r--r--pptpd-1.3.3/our_syslog.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/pptpd-1.3.3/our_syslog.h b/pptpd-1.3.3/our_syslog.h
deleted file mode 100644
index dd44273..0000000
--- a/pptpd-1.3.3/our_syslog.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * our_syslog.h
- *
- * Syslog replacement functions
- *
- * $Id: our_syslog.h,v 1.1.1.1 2002/06/21 08:52:00 fenix_nl Exp $
- */
-
-#ifndef _PPTPD_SYSLOG_H
-#define _PPTPD_SYSLOG_H
-
-/*
- * only enable this if you are debugging and running by hand
- * If init runs us you may not have an fd-2, and thus your write all over
- * someones FD and the die :-(
- */
-#undef USE_STDERR
-
-#ifdef USE_STDERR
-
-/*
- * Send all errors to stderr
- */
-
-#define openlog(a,b,c) ({})
-#define syslog(a,b,c...) ({fprintf(stderr, "pptpd syslog: " b "\n" , ## c);})
-#define closelog() ({})
-
-#define syslog_perror perror
-
-#else
-
-/*
- * Send all errors to syslog
- */
-
-#include <errno.h>
-#include <syslog.h>
-
-#define syslog_perror(s) syslog(LOG_ERR, "%s: %s", s, strerror(errno))
-
-#endif
-
-#endif /* !_PPTPD_SYSLOG_H */