misc sscanf format fix

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@786 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.3
Stéphane Fillod, F8CFE 2001-12-20 22:59:09 +00:00
rodzic 96abc51cd4
commit 99915b6c57
10 zmienionych plików z 23 dodań i 23 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Alinco backend - main file
* Copyright (c) 2001 by Stephane Fillod
*
* $Id: alinco.c,v 1.10 2001-12-19 03:35:27 fillods Exp $
* $Id: alinco.c,v 1.11 2001-12-20 22:59:07 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
@ -243,7 +243,7 @@ int alinco_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
/* extract RX freq */
freqbuf[16] = '\0';
sscanf(freqbuf+6, "%Ld", freq);
sscanf(freqbuf+6, "%lld", freq);
return RIG_OK;
}
@ -420,7 +420,7 @@ int alinco_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
/* extract TX freq first, as RX kills freqbuf[16] */
freqbuf[26] = '\0';
sscanf(freqbuf+16, "%Ld", tx_freq);
sscanf(freqbuf+16, "%lld", tx_freq);
return RIG_OK;
}

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib AOR backend - main file
* Copyright (c) 2000,2001 by Stephane Fillod
*
* $Id: aor.c,v 1.15 2001-12-16 11:14:46 fillods Exp $
* $Id: aor.c,v 1.16 2001-12-20 22:59:08 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
@ -154,7 +154,7 @@ int aor_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
return retval;
rfp = strstr(freqbuf, "RF");
sscanf(rfp+2,"%Ld", freq);
sscanf(rfp+2,"%lld", freq);
return RIG_OK;
}

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - main file
* Copyright (c) 2000,2001 by Stephane Fillod
*
* $Id: kenwood.c,v 1.21 2001-12-20 07:46:12 fillods Exp $
* $Id: kenwood.c,v 1.22 2001-12-20 22:59:08 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
@ -319,7 +319,7 @@ int kenwood_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (retval != RIG_OK)
return retval;
sscanf(freqbuf+2, "%Ld", freq);
sscanf(freqbuf+2, "%lld", freq);
return RIG_OK;
}

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TH handheld primitives
* Copyright (c) 2001 by Stephane Fillod
*
* $Id: th.c,v 1.1 2001-11-09 15:42:11 f4cfe Exp $
* $Id: th.c,v 1.2 2001-12-20 22:59:08 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
@ -115,7 +115,7 @@ int th_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (retval != RIG_OK)
return retval;
sscanf(freqbuf+3, "%Ld", freq);
sscanf(freqbuf+3, "%lld", freq);
return RIG_OK;
}

Wyświetl plik

@ -7,7 +7,7 @@
* It takes commands in interactive mode as well as
* from command line options.
*
* $Id: rigctl.c,v 1.22 2001-12-20 07:51:02 fillods Exp $
* $Id: rigctl.c,v 1.23 2001-12-20 22:59:08 fillods Exp $
*
*
* This program is free software; you can redistribute it and/or
@ -924,7 +924,7 @@ declare_proto_rig(power2mW)
printf("Power [0.0 .. 1.0]: ");
scanf("%f", &power);
printf("Frequency: ");
scanf("%Ld", &freq);
scanf("%lld", &freq);
printf("Mode: ");
scanf("%d", &mode);
status = rig_power2mW(rig, &mwp, power, freq, mode);

Wyświetl plik

@ -194,7 +194,7 @@ int main (int argc, char *argv[])
retcode = rig_get_freq(my_rig, RIG_VFO_CURR, &freq);
if (retcode == RIG_OK ) {
printf("rig_get_freq: freq = %Li \n", freq);
printf("rig_get_freq: freq = %lli \n", freq);
} else {
printf("rig_get_freq: error = %s \n", rigerror(retcode));
}

Wyświetl plik

@ -12,7 +12,7 @@
int myfreq_event(RIG *rig, vfo_t vfo, freq_t freq)
{
printf("Rig changed freq to %LiHz\n",freq);
printf("Rig changed freq to %lliHz\n",freq);
return 0;
}

Wyświetl plik

@ -7,7 +7,7 @@
* box (FIF-232C) or similar
*
*
* $Id: ft747.c,v 1.15 2001-12-11 22:04:45 fillods Exp $
* $Id: ft747.c,v 1.16 2001-12-20 22:59:08 fillods Exp $
*
*
* This program is free software; you can redistribute it and/or
@ -382,7 +382,7 @@ int ft747_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
rig_s = &rig->state;
rig_debug(RIG_DEBUG_VERBOSE,"ft747: requested freq = %Li Hz \n", freq);
rig_debug(RIG_DEBUG_VERBOSE,"ft747: requested freq = %lli Hz \n", freq);
/* frontend sets VFO now , if targetable_vfo = 0 */
@ -399,7 +399,7 @@ int ft747_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
to_bcd(p->p_cmd,freq/10,8); /* store bcd format in in p_cmd */
/* TODO -- fix 10Hz resolution -- FS */
rig_debug(RIG_DEBUG_VERBOSE,"ft747: requested freq after conversion = %Li Hz \n", from_bcd(p->p_cmd,8)* 10 );
rig_debug(RIG_DEBUG_VERBOSE,"ft747: requested freq after conversion = %lli Hz \n", from_bcd(p->p_cmd,8)* 10 );
cmd = p->p_cmd; /* get native sequence */
write_block(&rig_s->rigport, cmd, YAESU_CMD_LENGTH);
@ -439,7 +439,7 @@ int ft747_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) {
return -RIG_EINVAL; /* sorry, wrong VFO */
}
rig_debug(RIG_DEBUG_VERBOSE,"ft747: freq = %Li Hz for VFO = %u \n", f, vfo);
rig_debug(RIG_DEBUG_VERBOSE,"ft747: freq = %lli Hz for VFO = %u \n", f, vfo);
(*freq) = f; /* return diplayed frequency */

Wyświetl plik

@ -7,7 +7,7 @@
* The starting point for this code was Frank's ft847 implementation.
*
*
* $Id: ft817.c,v 1.2 2001-12-15 04:09:16 aa1vl Exp $
* $Id: ft817.c,v 1.3 2001-12-20 22:59:09 fillods Exp $
*
*
* This program is free software; you can redistribute it and/or
@ -349,7 +349,7 @@ int ft817_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
rig_s = &rig->state;
rig_debug(RIG_DEBUG_VERBOSE,"ft817: requested freq = %Li Hz \n", freq);
rig_debug(RIG_DEBUG_VERBOSE,"ft817: requested freq = %lli Hz \n", freq);
rig_debug(RIG_DEBUG_VERBOSE,"ft817: vfo =%i \n", vfo);
if( ( vfo != RIG_VFO_CURR ) &&
@ -371,7 +371,7 @@ int ft817_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
to_bcd_be(p->p_cmd,freq/10,8); /* store bcd format in in p_cmd */
/* TODO -- fix 10Hz resolution -- FS */
rig_debug(RIG_DEBUG_VERBOSE,"ft817: requested freq after conversion = %Li Hz \n", from_bcd_be(p->p_cmd,8)* 10 );
rig_debug(RIG_DEBUG_VERBOSE,"ft817: requested freq after conversion = %lli Hz \n", from_bcd_be(p->p_cmd,8)* 10 );
cmd = p->p_cmd; /* get native sequence */
write_block(&rig_s->rigport, cmd, YAESU_CMD_LENGTH);

Wyświetl plik

@ -6,7 +6,7 @@
* via serial interface to an FT-847 using the "CAT" interface.
*
*
* $Id: ft847.c,v 1.18 2001-12-16 11:17:42 fillods Exp $
* $Id: ft847.c,v 1.19 2001-12-20 22:59:09 fillods Exp $
*
*
*
@ -454,7 +454,7 @@ int ft847_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
rig_s = &rig->state;
rig_debug(RIG_DEBUG_VERBOSE,"ft847: requested freq = %Li Hz \n", freq);
rig_debug(RIG_DEBUG_VERBOSE,"ft847: requested freq = %lli Hz \n", freq);
/*
@ -489,7 +489,7 @@ int ft847_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
to_bcd_be(p->p_cmd,freq/10,8); /* store bcd format in in p_cmd */
/* TODO -- fix 10Hz resolution -- FS */
rig_debug(RIG_DEBUG_VERBOSE,"ft847: requested freq after conversion = %Li Hz \n", from_bcd_be(p->p_cmd,8)* 10 );
rig_debug(RIG_DEBUG_VERBOSE,"ft847: requested freq after conversion = %lli Hz \n", from_bcd_be(p->p_cmd,8)* 10 );
cmd = p->p_cmd; /* get native sequence */
write_block(&rig_s->rigport, cmd, YAESU_CMD_LENGTH);