]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence win32 compiler warnings
authorEvan Hunt <each@isc.org>
Thu, 3 Sep 2009 00:12:23 +0000 (00:12 +0000)
committerEvan Hunt <each@isc.org>
Thu, 3 Sep 2009 00:12:23 +0000 (00:12 +0000)
bin/dnssec/dnssectool.c
lib/dns/lib.c

index 5e626400901ffa01941642bc5072f51aebe7412b..62f3da33ba6d830510a663a3f2e2abb700f5be24 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssectool.c,v 1.52 2009/09/02 23:48:01 tbox Exp $ */
+/* $Id: dnssectool.c,v 1.53 2009/09/03 00:12:23 each Exp $ */
 
 /*! \file */
 
@@ -329,11 +329,11 @@ strtotime(const char *str, isc_int64_t now, isc_int64_t base) {
                return ((isc_stdtime_t) base);
        else if (str[0] == '+') {
                offset = strtol(str + 1, &endp, 0);
-               offset = time_units(offset, endp, orig);
+               offset = time_units((isc_stdtime_t) offset, endp, orig);
                val = base + offset;
        } else if (str[0] == '-') {
                offset = strtol(str + 1, &endp, 0);
-               offset = time_units(offset, endp, orig);
+               offset = time_units((isc_stdtime_t) offset, endp, orig);
                val = base - offset;
        } else if (strlen(str) == 8U) {
                char timestr[15];
index eb69e992d29e0054b0fe7b3bbc48bda6eaeb7b3e..df16fa22d0c114931e5c1bf2630ac1e29bbb6666 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: lib.c,v 1.18 2009/09/02 23:48:02 tbox Exp $ */
+/* $Id: lib.c,v 1.19 2009/09/03 00:12:23 each Exp $ */
 
 /*! \file */
 
@@ -83,7 +83,7 @@ static isc_mutex_t reflock;
 static unsigned int references = 0;
 
 static void
-initialize() {
+initialize(void) {
        isc_result_t result;
 
        REQUIRE(initialize_done == ISC_FALSE);