summaryrefslogtreecommitdiffstats
path: root/log-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'log-server.c')
-rw-r--r--log-server.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/log-server.c b/log-server.c
index 805df6b6..42f567af 100644
--- a/log-server.c
+++ b/log-server.c
@@ -15,13 +15,19 @@ to the system log.
*/
#include "includes.h"
-RCSID("$Id: log-server.c,v 1.3 1999/11/15 04:25:10 damien Exp $");
+RCSID("$Id: log-server.c,v 1.4 1999/11/15 06:10:57 damien Exp $");
#include <syslog.h>
#include "packet.h"
#include "xmalloc.h"
#include "ssh.h"
+#ifdef HAVE___PROGNAME
+extern char *__progname;
+#else /* HAVE___PROGNAME */
+const char *__progname = "sshd";
+#endif /* HAVE___PROGNAME */
+
static LogLevel log_level = SYSLOG_LEVEL_INFO;
static int log_on_stderr = 0;
static int log_facility = LOG_AUTH;
@@ -104,7 +110,6 @@ do_log(LogLevel level, const char *fmt, va_list args)
char fmtbuf[MSGBUFSIZE];
char *txt = NULL;
int pri = LOG_INFO;
- extern char *__progname;
if (level > log_level)
return;