From f1dabb734648e8bb7d50e1985204afc0f79cbf70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Mon, 23 Feb 2009 21:53:51 +0000 Subject: [PATCH] fix warning with old compilers git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2663 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- racal/racal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/racal/racal.c b/racal/racal.c index fa1550a2e..b1eaf29de 100644 --- a/racal/racal.c +++ b/racal/racal.c @@ -1,8 +1,8 @@ /* * Hamlib Racal backend - main file - * Copyright (c) 2004 by Stephane Fillod + * Copyright (c) 2004-2009 by Stephane Fillod * - * $Id: racal.c,v 1.1 2004-09-12 21:28:26 fillods Exp $ + * $Id: racal.c,v 1.2 2009-02-23 21:53:51 fillods Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -267,7 +267,7 @@ int racal_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) if (width == RIG_PASSBAND_NORMAL) width = rig_passband_normal(rig, mode); - sprintf(buf, "D%dI%.f", ra_mode, (double)(width/kHz(1))); + sprintf(buf, "D%dI%.0f", ra_mode, (double)(width/kHz(1))); return racal_transaction (rig, buf, NULL, NULL); }