2
0
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:
Ted Lemon
1999-10-12 16:00:34 +00:00
parent a414e627d8
commit ab58ff49e0
8 changed files with 44 additions and 29 deletions

View File

@@ -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)

View File

@@ -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;