From 0f516de2eee965a8a2ff277cc4aedb710a275914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Tue, 28 Nov 2000 22:34:37 +0000 Subject: [PATCH] * misc format fixup git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@275 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/dumpcaps.c | 4 ++-- tests/rigctl.c | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/dumpcaps.c b/tests/dumpcaps.c index 93d6a215d..77386dd74 100644 --- a/tests/dumpcaps.c +++ b/tests/dumpcaps.c @@ -3,7 +3,7 @@ * This programs dumps the capabilities of a backend rig. * * - * $Id: dumpcaps.c,v 1.6 2000-11-01 23:27:26 f4cfe Exp $ + * $Id: dumpcaps.c,v 1.7 2000-11-28 22:34:37 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -170,7 +170,7 @@ int main (int argc, char *argv[]) printf("Tuning steps:\n"); for (i=0; ituning_steps[i].ts; i++) { - printf("\t%iHz:\t%s\n",caps->tuning_steps[i].ts, + printf("\t%liHz:\t%s\n",caps->tuning_steps[i].ts, decode_modes(caps->tuning_steps[i].modes)); } diff --git a/tests/rigctl.c b/tests/rigctl.c index 04e7fd0e9..584b696af 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -7,7 +7,7 @@ * TODO: be more generic and add command line option to run * in non-interactive mode * - * $Id: rigctl.c,v 1.1 2000-10-29 16:35:29 f4cfe Exp $ + * $Id: rigctl.c,v 1.2 2000-11-28 22:34:37 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -248,7 +248,7 @@ static int set_passband(RIG *rig) pbwidth_t width; printf("Passband: "); - scanf("%d", &width); + scanf("%d", (int*)&width); return rig_set_passband(rig, width); } @@ -269,7 +269,7 @@ static int set_vfo(RIG *rig) vfo_t vfo; printf("VFO: "); - scanf("%d", &vfo); + scanf("%d", (int*)&vfo); return rig_set_vfo(rig, vfo); } @@ -290,7 +290,7 @@ static int set_ptt(RIG *rig) ptt_t ptt; printf("PTT: "); - scanf("%d", &ptt); + scanf("%d", (int*)&ptt); return rig_set_ptt(rig, ptt); } @@ -311,7 +311,7 @@ static int set_rptr_shift(RIG *rig) rptr_shift_t rptr_shift; printf("Repeater shift: "); - scanf("%d", &rptr_shift); + scanf("%d", (int*)&rptr_shift); return rig_set_rptr_shift(rig, rptr_shift); } @@ -332,7 +332,7 @@ static int set_rptr_offs(RIG *rig) unsigned long rptr_offs; printf("Repeater shift offset: "); - scanf("%d", &rptr_offs); + scanf("%ld", &rptr_offs); return rig_set_rptr_offs(rig, rptr_offs); } @@ -343,7 +343,7 @@ static int get_rptr_offs(RIG *rig) unsigned long rptr_offs; status = rig_get_rptr_offs(rig, &rptr_offs); - printf("Repeater shift offset: %d\n", rptr_offs); + printf("Repeater shift offset: %ld\n", rptr_offs); return status; } @@ -419,7 +419,7 @@ static int set_split(RIG *rig) split_t split; printf("Split mode: "); - scanf("%d", &split); + scanf("%d", (int*)&split); return rig_set_split(rig, split); } @@ -440,7 +440,7 @@ static int set_ts(RIG *rig) unsigned long ts; printf("Tuning step: "); - scanf("%d", &ts); + scanf("%ld", &ts); return rig_set_ts(rig, ts); } @@ -451,7 +451,7 @@ static int get_ts(RIG *rig) unsigned long ts; status = rig_get_ts(rig, &ts); - printf("Tuning step: %d\n", ts); + printf("Tuning step: %ld\n", ts); return status; } @@ -535,7 +535,7 @@ static int mv_ctl(RIG *rig) mv_op_t op; printf("Mem/VFO op: "); - scanf("%d", &op); + scanf("%d", (int*)&op); return rig_mv_ctl(rig, op); }