mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Fix up args to printf-like functions (thanks to Pedro Ribiero).
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
|
||||
#if !defined (__ISC_DHCP_CDEFS_H__)
|
||||
#define __ISC_DHCP_CDEFS_H__
|
||||
/* Delete attributes if not gcc or not the right version of gcc. */
|
||||
#if !defined(__GNUC__) || __GNUC__ < 2 || \
|
||||
(__GNUC__ == 2 && __GNUC_MINOR__ < 5)
|
||||
#define __attribute__(x)
|
||||
#endif
|
||||
|
||||
#if (defined (__GNUC__) || defined (__STDC__)) && !defined (BROKEN_ANSI)
|
||||
#define PROTO(x) x
|
||||
#define KandR(x)
|
||||
|
@@ -900,11 +900,16 @@ int hashed_option_space_encapsulate PROTO ((struct data_string *,
|
||||
struct universe *));
|
||||
|
||||
/* errwarn.c */
|
||||
void log_fatal PROTO ((const char *, ...));
|
||||
int log_error PROTO ((const char *, ...));
|
||||
int log_info PROTO ((const char *, ...));
|
||||
int log_debug PROTO ((const char *, ...));
|
||||
int parse_warn PROTO ((struct parse *, const char *, ...));
|
||||
void log_fatal PROTO ((const char *, ...))
|
||||
__attribute__((__format__(__printf__,1,2)));
|
||||
int log_error PROTO ((const char *, ...))
|
||||
__attribute__((__format__(__printf__,1,2)));
|
||||
int log_info PROTO ((const char *, ...))
|
||||
__attribute__((__format__(__printf__,1,2)));
|
||||
int log_debug PROTO ((const char *, ...))
|
||||
__attribute__((__format__(__printf__,1,2)));
|
||||
int parse_warn PROTO ((struct parse *, const char *, ...))
|
||||
__attribute__((__format__(__printf__,2,3)));
|
||||
|
||||
/* dhcpd.c */
|
||||
extern TIME cur_time;
|
||||
|
Reference in New Issue
Block a user