From patchwork Wed Sep 30 23:15:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hefty, Sean" X-Patchwork-Id: 50787 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8UNFAbu014854 for ; Wed, 30 Sep 2009 23:15:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754258AbZI3XPF (ORCPT ); Wed, 30 Sep 2009 19:15:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754548AbZI3XPF (ORCPT ); Wed, 30 Sep 2009 19:15:05 -0400 Received: from mga11.intel.com ([192.55.52.93]:1367 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754258AbZI3XPD (ORCPT ); Wed, 30 Sep 2009 19:15:03 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 30 Sep 2009 16:02:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,482,1249282800"; d="scan'208";a="498637681" Received: from mshefty-mobl2.amr.corp.intel.com (HELO msheftyMOBL2) ([10.24.91.232]) by fmsmga002.fm.intel.com with ESMTP; 30 Sep 2009 16:07:04 -0700 From: "Sean Hefty" To: "Hefty, Sean" , "linux-rdma" , "Davis, Arlin R" References: Subject: [PATCH 3/4] dapl/dtest: remove gettimeofday definition Date: Wed, 30 Sep 2009 16:15:07 -0700 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpCI1FOzr31gWWuRKua65YShGUa7wAAD9bg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 In-Reply-To: Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/test/dtest/dtest.c b/test/dtest/dtest.c index 22999f7..1ae279f 100755 --- a/test/dtest/dtest.c +++ b/test/dtest/dtest.c @@ -723,17 +723,6 @@ complete: return (0); } -#if defined(_WIN32) || defined(_WIN64) -void gettimeofday(struct timeval *t, char *jnk) -{ - SYSTEMTIME now; - GetLocalTime(&now); - t->tv_sec = now.wMinute * 60; - t->tv_sec += now.wSecond; - t->tv_usec = now.wMilliseconds; -} -#endif - double get_time(void) { struct timeval tp; diff --git a/test/dtest/dtestcm.c b/test/dtest/dtestcm.c index 427a25e..d1e5712 100644 --- a/test/dtest/dtestcm.c +++ b/test/dtest/dtestcm.c @@ -547,19 +547,6 @@ bail: return (0); } -#if defined(_WIN32) || defined(_WIN64) - -void gettimeofday(struct timeval *t, char *jnk) -{ - SYSTEMTIME now; - GetLocalTime(&now); - t->tv_sec = now.wMinute * 60; - t->tv_sec += now.wSecond; - t->tv_usec = now.wMilliseconds; -} - -#endif - double get_time(void) { struct timeval tp;