~ubuntu-branches/ubuntu/precise/sup/precise

« back to all changes in this revision

Viewing changes to log.c

  • Committer: Bazaar Package Importer
  • Author(s): Jochen Friedrich
  • Date: 2009-10-20 17:18:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091020171849-76d7gzmhnvns6jof
Tags: 20091019-1
* Update to new upstream snapshot.
* Convert to debhelper 7 and quilt.
* Fix compile on GNU/kFreeBSD. (Closes: #403816)
* Add patch to fix man pages.
* Bumped standards version to 3.8.3.
* Update Makefile patch to not strip any binaries. (Closes: #438074)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: log.c,v 1.8 2002/07/10 20:19:40 wiz Exp $      */
 
1
/*      $NetBSD: log.c,v 1.10 2009/10/16 12:41:37 christos Exp $        */
2
2
 
3
3
/*
4
4
 * Copyright (c) 1992 Carnegie Mellon University
48
48
 
49
49
#include <stdio.h>
50
50
#include <sys/syslog.h>
51
 
#include "c.h"
52
51
#include "supcdefs.h"
53
52
#include "supextern.h"
 
53
#include "c.h"
54
54
 
55
55
static int opened = 0;
56
56
 
64
64
}
65
65
 
66
66
void
67
 
logquit(int retval, char *fmt, ...)
 
67
logquit(int retval, const char *fmt, ...)
68
68
{
69
69
        char buf[STRINGLENGTH];
70
70
        va_list ap;
81
81
}
82
82
 
83
83
void
84
 
logerr(char *fmt, ...)
 
84
logerr(const char *fmt, ...)
85
85
{
86
86
        char buf[STRINGLENGTH];
87
87
        va_list ap;
98
98
}
99
99
 
100
100
void
101
 
loginfo(char *fmt, ...)
 
101
loginfo(const char *fmt, ...)
102
102
{
103
103
        char buf[STRINGLENGTH];
104
104
        va_list ap;
131
131
int deny_severity = LIBWRAP_DENY_FACILITY | LIBWRAP_DENY_SEVERITY;
132
132
 
133
133
void
134
 
logdeny(char *fmt, ...)
 
134
logdeny(const char *fmt, ...)
135
135
{
136
136
        char buf[STRINGLENGTH];
137
137
        va_list ap;
148
148
}
149
149
 
150
150
void
151
 
logallow(char *fmt, ...)
 
151
logallow(const char *fmt, ...)
152
152
{
153
153
        char buf[STRINGLENGTH];
154
154
        va_list ap;