From patchwork Fri Jan 27 02:23:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Haws X-Patchwork-Id: 16922 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id D09218328D; Fri, 27 Jan 2017 03:23:45 +0100 (CET) Authentication-Results: open-mesh.org; dmarc=none header.from=sdl.usu.edu Received-SPF: None (no SPF record) identity=mailfrom; client-ip=129.123.197.145; helo=perses.usurf.usu.edu; envelope-from=jonathan.haws@sdl.usu.edu; receiver=b.a.t.m.a.n@lists.open-mesh.org Authentication-Results: open-mesh.org; dmarc=none header.from=sdl.usu.edu Received: from Perses.usurf.usu.edu (unknown [129.123.197.145]) by open-mesh.org (Postfix) with ESMTPS id 7BCA98327C for ; Fri, 27 Jan 2017 03:23:42 +0100 (CET) Received: from EK.usurf.usu.edu (172.31.35.73) by Perses.usurf.usu.edu (172.31.35.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 26 Jan 2017 19:23:40 -0700 Received: from PERSES.usurf.usu.edu (172.31.35.68) by Ek.usurf.usu.edu (172.31.35.73) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 26 Jan 2017 19:23:40 -0700 Received: from localhost (172.31.40.66) by PERSES.usurf.usu.edu (172.31.35.68) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 26 Jan 2017 19:23:40 -0700 From: Jonathan Haws To: Date: Thu, 26 Jan 2017 19:23:09 -0700 Message-ID: <1485483789-5327-1-git-send-email-jhaws@sdl.usu.edu> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Cc: Jonathan Haws Subject: [B.A.T.M.A.N.] [PATCH v1] alfred: Formatting patch for sync-period casts X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 1cabe15..446eecf 100644 --- a/main.c +++ b/main.c @@ -276,8 +276,8 @@ static struct globals *alfred_init(int argc, char *argv[]) return NULL; case 'p': sync_period = strtod(optarg, NULL); - globals->sync_period.tv_sec = (int) sync_period; - globals->sync_period.tv_nsec = (double) (sync_period - (int) sync_period) * 1e9; + globals->sync_period.tv_sec = (int)sync_period; + globals->sync_period.tv_nsec = (double)(sync_period - (int)sync_period) * 1e9; printf(" ** Setting sync interval to: %.9f seconds (%ld.%09ld)\n", sync_period, globals->sync_period.tv_sec, globals->sync_period.tv_nsec); break; case '4':