Deleted Added
full compact
report.c (65426) report.c (69200)
1/* $FreeBSD: head/libexec/bootpd/report.c 65426 2000-09-04 05:48:09Z imp $ */
1/* $FreeBSD: head/libexec/bootpd/report.c 69200 2000-11-26 10:21:54Z kris $ */
2
3/*
4 * report() - calls syslog
5 */
6
7#ifdef __STDC__
8#include <stdarg.h>
9#else

--- 79 unchanged lines hidden (view full) ---

89
90
91/*
92 * Print a log message using syslog(3) and/or stderr.
93 * The message passed in should not include a newline.
94 */
95#ifdef __STDC__
96void
2
3/*
4 * report() - calls syslog
5 */
6
7#ifdef __STDC__
8#include <stdarg.h>
9#else

--- 79 unchanged lines hidden (view full) ---

89
90
91/*
92 * Print a log message using syslog(3) and/or stderr.
93 * The message passed in should not include a newline.
94 */
95#ifdef __STDC__
96void
97report(int priority, char *fmt,...)
97report(int priority, const char *fmt,...)
98#else
99/*VARARGS2*/
100void
101report(priority, fmt, va_alist)
102 int priority;
98#else
99/*VARARGS2*/
100void
101report(priority, fmt, va_alist)
102 int priority;
103 char *fmt;
103 const char *fmt;
104 va_dcl
105#endif
106{
107 va_list ap;
108 static char buf[128];
109
110 if ((priority < 0) || (priority >= numlevels)) {
111 priority = numlevels - 1;

--- 19 unchanged lines hidden (view full) ---

131#endif
132}
133
134
135
136/*
137 * Return pointer to static string which gives full filesystem error message.
138 */
104 va_dcl
105#endif
106{
107 va_list ap;
108 static char buf[128];
109
110 if ((priority < 0) || (priority >= numlevels)) {
111 priority = numlevels - 1;

--- 19 unchanged lines hidden (view full) ---

131#endif
132}
133
134
135
136/*
137 * Return pointer to static string which gives full filesystem error message.
138 */
139char *
139const char *
140get_errmsg()
141{
142 return strerror(errno);
143}
144
145/*
146 * Local Variables:
147 * tab-width: 4
148 * c-indent-level: 4
149 * c-argdecl-indent: 4
150 * c-continued-statement-offset: 4
151 * c-continued-brace-offset: -4
152 * c-label-offset: -4
153 * c-brace-offset: 0
154 * End:
155 */
140get_errmsg()
141{
142 return strerror(errno);
143}
144
145/*
146 * Local Variables:
147 * tab-width: 4
148 * c-indent-level: 4
149 * c-argdecl-indent: 4
150 * c-continued-statement-offset: 4
151 * c-continued-brace-offset: -4
152 * c-label-offset: -4
153 * c-brace-offset: 0
154 * End:
155 */