From: Jan Friesse Date: Tue, 26 Nov 2019 12:56:07 +0000 (+0100) Subject: cpghum: Remove unused time variables and functions X-Git-Tag: v3.0.4~26 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ee38d93cc770e8f8d5c693b0acc5bed082bab072;p=mirror_corosync.git cpghum: Remove unused time variables and functions Signed-off-by: Jan Friesse --- diff --git a/test/cpghum.c b/test/cpghum.c index 7c007d0c..c31244c8 100644 --- a/test/cpghum.c +++ b/test/cpghum.c @@ -437,7 +437,6 @@ static void cpg_test ( int delay_time, int print_time) { - struct timeval tv1, tv2, tv_elapsed; struct iovec iov; unsigned int res; @@ -468,8 +467,6 @@ static void cpg_test ( } usleep(delay_time*1000); } while (alarm_notice == 0 && (res == CS_OK || res == CS_ERR_TRY_AGAIN) && stopped == 0); - gettimeofday (&tv2, NULL); - timersub (&tv2, &tv1, &tv_elapsed); if (!quiet) { if (machine_readable) {