Update to FreeBSD head 2018-04-01

Git mirror commit 8dfb1ccc26d1cea7e2529303003ff61f9f1784c4.

Update #3472.
This commit is contained in:
Sebastian Huber
2018-08-21 09:39:55 +02:00
parent 18fa92c2dc
commit 2df56dbd60
327 changed files with 6676 additions and 3502 deletions

View File

@@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$");
#include "dhcpd.h"
static void do_percentm(char *obuf, size_t size, char *ibuf);
static void do_percentm(char *obuf, size_t size, const char *ibuf);
static char mbuf[1024];
static char fbuf[1024];
@@ -62,7 +62,7 @@ int warnings_occurred;
* Log an error message, then exit.
*/
void
error(char *fmt, ...)
error(const char *fmt, ...)
{
va_list list;
@@ -96,7 +96,7 @@ error(char *fmt, ...)
* Log a warning message...
*/
int
warning(char *fmt, ...)
warning(const char *fmt, ...)
{
va_list list;
@@ -122,7 +122,7 @@ warning(char *fmt, ...)
* Log a note...
*/
int
note(char *fmt, ...)
note(const char *fmt, ...)
{
va_list list;
@@ -148,7 +148,7 @@ note(char *fmt, ...)
* Log a debug message...
*/
int
debug(char *fmt, ...)
debug(const char *fmt, ...)
{
va_list list;
@@ -174,10 +174,10 @@ debug(char *fmt, ...)
* Find %m in the input string and substitute an error message string.
*/
static void
do_percentm(char *obuf, size_t size, char *ibuf)
do_percentm(char *obuf, size_t size, const char *ibuf)
{
char ch;
char *s = ibuf;
const char *s = ibuf;
char *t = obuf;
size_t prlen;
size_t fmt_left;
@@ -207,7 +207,7 @@ do_percentm(char *obuf, size_t size, char *ibuf)
}
int
parse_warn(char *fmt, ...)
parse_warn(const char *fmt, ...)
{
va_list list;
static char spaces[] =