diff options
Diffstat (limited to 'contrib/sdb/time/timedb.c')
-rw-r--r-- | contrib/sdb/time/timedb.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/contrib/sdb/time/timedb.c b/contrib/sdb/time/timedb.c index 71b01fb0..cc5860dd 100644 --- a/contrib/sdb/time/timedb.c +++ b/contrib/sdb/time/timedb.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2007, 2011 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000, 2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: timedb.c,v 1.10 2007-06-19 23:47:10 tbox Exp $ */ +/* $Id: timedb.c,v 1.12 2011-10-11 23:46:45 tbox Exp $ */ /* * A simple database driver that enables the server to return the @@ -43,18 +43,29 @@ static dns_sdbimplementation_t *timedb = NULL; /* * This database operates on relative names. * - * "time" and "@" return the time in a TXT record. + * "time" and "@" return the time in a TXT record. * "clock" is a CNAME to "time" * "current" is a DNAME to "@" (try time.current.time) - */ + */ +#ifdef DNS_CLIENTINFO_VERSION +static isc_result_t +timedb_lookup(const char *zone, const char *name, void *dbdata, + dns_sdblookup_t *lookup, dns_clientinfomethods_t *methods, + dns_clientinfo_t *clientinfo) +#else static isc_result_t timedb_lookup(const char *zone, const char *name, void *dbdata, dns_sdblookup_t *lookup) +#endif /* DNS_CLIENTINFO_VERSION */ { isc_result_t result; UNUSED(zone); UNUSED(dbdata); +#ifdef DNS_CLIENTINFO_VERSION + UNUSED(methods); + UNUSED(clientinfo); +#endif /* DNS_CLIENTINFO_VERSION */ if (strcmp(name, "@") == 0 || strcmp(name, "time") == 0) { time_t now = time(NULL); |