-/* $OpenBSD: dhcpd.h,v 1.129 2014/01/12 04:17:36 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.130 2014/01/13 02:38:52 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
/* errwarn.c */
extern int warnings_occurred;
void error(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
-int warning(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
-int note(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
+void warning(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
+void note(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
#ifdef DEBUG
-int debug(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
+void debug(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
#endif
-int parse_warn(char *);
+void parse_warn(char *);
/* conflex.c */
extern int lexline, lexchar;
-/* $OpenBSD: errwarn.c,v 1.20 2013/05/02 16:35:27 krw Exp $ */
+/* $OpenBSD: errwarn.c,v 1.21 2014/01/13 02:38:52 krw Exp $ */
/* Errors and warnings. */
/*
* Log a warning message.
*/
-int
+void
warning(char *fmt, ...)
{
va_list list;
write(STDERR_FILENO, mbuf, strlen(mbuf));
write(STDERR_FILENO, "\n", 1);
}
-
- return (0);
}
/*
* Log a note.
*/
-int
+void
note(char *fmt, ...)
{
va_list list;
write(STDERR_FILENO, mbuf, strlen(mbuf));
write(STDERR_FILENO, "\n", 1);
}
-
- return (0);
}
#ifdef DEBUG
/*
* Log a debug message.
*/
-int
+void
debug(char *fmt, ...)
{
va_list list;
write(STDERR_FILENO, mbuf, strlen(mbuf));
write(STDERR_FILENO, "\n", 1);
}
-
- return (0);
}
#endif
-int
+void
parse_warn(char *msg)
{
static char spaces[] =
writev(STDERR_FILENO, iov, iovcnt);
}
warnings_occurred = 1;
- return (0);
}