[Hamlib-cvs-digest] CVS: hamlib/tests dumpcaps.c,1.6,1.7 rigctl.c,1.1,1.2
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Stephane F. <f4...@us...> - 2000-11-28 22:34:41
|
Update of /cvsroot/hamlib/hamlib/tests In directory slayer.i.sourceforge.net:/tmp/cvs-serv1504 Modified Files: dumpcaps.c rigctl.c Log Message: * misc format fixup Index: dumpcaps.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/tests/dumpcaps.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** dumpcaps.c 2000/11/01 23:27:26 1.6 --- dumpcaps.c 2000/11/28 22:34:37 1.7 *************** *** 171,175 **** printf("Tuning steps:\n"); for (i=0; i<TSLSTSIZ && caps->tuning_steps[i].ts; i++) { ! printf("\t%iHz:\t%s\n",caps->tuning_steps[i].ts, decode_modes(caps->tuning_steps[i].modes)); } --- 171,175 ---- printf("Tuning steps:\n"); for (i=0; i<TSLSTSIZ && caps->tuning_steps[i].ts; i++) { ! printf("\t%liHz:\t%s\n",caps->tuning_steps[i].ts, decode_modes(caps->tuning_steps[i].modes)); } Index: rigctl.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/tests/rigctl.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** rigctl.c 2000/10/29 16:35:29 1.1 --- rigctl.c 2000/11/28 22:34:37 1.2 *************** *** 249,253 **** printf("Passband: "); ! scanf("%d", &width); return rig_set_passband(rig, width); } --- 249,253 ---- printf("Passband: "); ! scanf("%d", (int*)&width); return rig_set_passband(rig, width); } *************** *** 270,274 **** printf("VFO: "); ! scanf("%d", &vfo); return rig_set_vfo(rig, vfo); } --- 270,274 ---- printf("VFO: "); ! scanf("%d", (int*)&vfo); return rig_set_vfo(rig, vfo); } *************** *** 291,295 **** printf("PTT: "); ! scanf("%d", &ptt); return rig_set_ptt(rig, ptt); } --- 291,295 ---- printf("PTT: "); ! scanf("%d", (int*)&ptt); return rig_set_ptt(rig, ptt); } *************** *** 312,316 **** printf("Repeater shift: "); ! scanf("%d", &rptr_shift); return rig_set_rptr_shift(rig, rptr_shift); } --- 312,316 ---- printf("Repeater shift: "); ! scanf("%d", (int*)&rptr_shift); return rig_set_rptr_shift(rig, rptr_shift); } *************** *** 333,337 **** printf("Repeater shift offset: "); ! scanf("%d", &rptr_offs); return rig_set_rptr_offs(rig, rptr_offs); } --- 333,337 ---- printf("Repeater shift offset: "); ! scanf("%ld", &rptr_offs); return rig_set_rptr_offs(rig, rptr_offs); } *************** *** 344,348 **** status = rig_get_rptr_offs(rig, &rptr_offs); ! printf("Repeater shift offset: %d\n", rptr_offs); return status; } --- 344,348 ---- status = rig_get_rptr_offs(rig, &rptr_offs); ! printf("Repeater shift offset: %ld\n", rptr_offs); return status; } *************** *** 420,424 **** printf("Split mode: "); ! scanf("%d", &split); return rig_set_split(rig, split); } --- 420,424 ---- printf("Split mode: "); ! scanf("%d", (int*)&split); return rig_set_split(rig, split); } *************** *** 441,445 **** printf("Tuning step: "); ! scanf("%d", &ts); return rig_set_ts(rig, ts); } --- 441,445 ---- printf("Tuning step: "); ! scanf("%ld", &ts); return rig_set_ts(rig, ts); } *************** *** 452,456 **** status = rig_get_ts(rig, &ts); ! printf("Tuning step: %d\n", ts); return status; } --- 452,456 ---- status = rig_get_ts(rig, &ts); ! printf("Tuning step: %ld\n", ts); return status; } *************** *** 536,540 **** printf("Mem/VFO op: "); ! scanf("%d", &op); return rig_mv_ctl(rig, op); } --- 536,540 ---- printf("Mem/VFO op: "); ! scanf("%d", (int*)&op); return rig_mv_ctl(rig, op); } |