BIND 10 master, updated. 04a793d3454490fe8aa05d91185c7bc59ff30c97 [master] Use clockid to avoid "unused variable" warning.

BIND 10 source code commits bind10-changes at lists.isc.org
Mon May 28 14:51:55 UTC 2012


The branch, master has been updated
       via  04a793d3454490fe8aa05d91185c7bc59ff30c97 (commit)
      from  8d56105742f3043ed4b561f26241f3e4331f51dc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 04a793d3454490fe8aa05d91185c7bc59ff30c97
Author: Marcin Siodelski <marcin at isc.org>
Date:   Mon May 28 16:51:42 2012 +0200

    [master] Use clockid to avoid "unused variable" warning.

-----------------------------------------------------------------------

Summary of changes:
 tests/tools/perfdhcp/perfdhcp.cc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/perfdhcp.cc b/tests/tools/perfdhcp/perfdhcp.cc
index 414db24..296dd90 100644
--- a/tests/tools/perfdhcp/perfdhcp.cc
+++ b/tests/tools/perfdhcp/perfdhcp.cc
@@ -441,9 +441,11 @@ size_t reqaddr_request6;
 int clock_gettime(int clockid, struct timespec *tp) {
 
     struct timeval tv;
+    int unused_id = clockid;
     gettimeofday(&tv, NULL);
+    unused_id = 0;
     tp->tv_sec = tv.tv_sec;
-    tp->tv_nsec = tv.tv_usec*1000;
+    tp->tv_nsec = tv.tv_usec*1000 + unused_id;
 
     return (0);
 }



More information about the bind10-changes mailing list