diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 4b6764dda9..7b81605304 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.325 2009/09/15 03:13:43 each Exp $ */ +/* $Id: dighost.c,v 1.326 2009/09/15 23:48:09 tbox Exp $ */ /*! \file * \note @@ -964,14 +964,14 @@ parse_uint(isc_uint32_t *uip, const char *value, isc_uint32_t max, static isc_uint32_t parse_bits(char *arg, const char *desc, isc_uint32_t max) { - isc_result_t result; - isc_uint32_t tmp; + isc_result_t result; + isc_uint32_t tmp; - result = parse_uint(&tmp, arg, max, desc); - if (result != ISC_R_SUCCESS) - fatal("couldn't parse digest bits"); - tmp = (tmp + 7) & ~0x7U; - return (tmp); + result = parse_uint(&tmp, arg, max, desc); + if (result != ISC_R_SUCCESS) + fatal("couldn't parse digest bits"); + tmp = (tmp + 7) & ~0x7U; + return (tmp); } @@ -986,7 +986,7 @@ parse_hmac(const char *hmac) { REQUIRE(hmac != NULL); len = strlen(hmac); - if (len >= (int) sizeof(buf)) + if (len >= (int) sizeof(buf)) fatal("unknown key type '%.*s'", len, hmac); strncpy(buf, hmac, sizeof(buf)); diff --git a/bin/dig/include/dig/dig.h b/bin/dig/include/dig/dig.h index 8d319fbb11..d463afb35f 100644 --- a/bin/dig/include/dig/dig.h +++ b/bin/dig/include/dig/dig.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.h,v 1.109 2009/09/15 03:13:44 each Exp $ */ +/* $Id: dig.h,v 1.110 2009/09/15 23:48:09 tbox Exp $ */ #ifndef DIG_H #define DIG_H