- Cast/change unsigned char to char in order to fix compile warnings.

- Incremented backend version number.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2125 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.6rc1
Alexandru Csete OZ9AEC 2006-10-07 17:51:00 +00:00
rodzic 3a9855708c
commit 2c6605b41b
2 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib JRC backend - main file * Hamlib JRC backend - main file
* Copyright (c) 2001-2005 by Stephane Fillod * Copyright (c) 2001-2005 by Stephane Fillod
* *
* $Id: jrc.c,v 1.28 2005-05-04 20:57:52 fineware Exp $ * $Id: jrc.c,v 1.29 2006-10-07 17:51:00 csete Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -303,9 +303,9 @@ int jrc_set_vfo(RIG *rig, vfo_t vfo)
return -RIG_EINVAL; return -RIG_EINVAL;
} }
cmd_len = sprintf(cmdbuf, "%c" EOM, vfo_function); cmd_len = sprintf((char *) cmdbuf, "%c" EOM, vfo_function);
retval = jrc_transaction (rig, cmdbuf, cmd_len, NULL, NULL); retval = jrc_transaction (rig, (char *) cmdbuf, cmd_len, NULL, NULL);
return retval; return retval;
} }
@ -1018,7 +1018,7 @@ int jrc_get_dcd(RIG *rig, vfo_t vfo, dcd_t *dcd)
*/ */
int jrc_set_trn(RIG *rig, int trn) int jrc_set_trn(RIG *rig, int trn)
{ {
unsigned char *trncmd; char *trncmd;
/* transceive(continuous) mode not available in remote mode /* transceive(continuous) mode not available in remote mode
* so switch back and forth upon entering/leaving * so switch back and forth upon entering/leaving
@ -1034,7 +1034,7 @@ int jrc_set_trn(RIG *rig, int trn)
*/ */
int jrc_set_powerstat(RIG *rig, powerstat_t status) int jrc_set_powerstat(RIG *rig, powerstat_t status)
{ {
unsigned char pwrbuf[BUFSZ]; char pwrbuf[BUFSZ];
int pwr_len; int pwr_len;
pwr_len = sprintf(pwrbuf, "T%d" EOM, status==RIG_POWER_ON?1:0); pwr_len = sprintf(pwrbuf, "T%d" EOM, status==RIG_POWER_ON?1:0);
@ -1081,7 +1081,7 @@ int jrc_get_powerstat(RIG *rig, powerstat_t *status)
*/ */
int jrc_reset(RIG *rig, reset_t reset) int jrc_reset(RIG *rig, reset_t reset)
{ {
unsigned char rstbuf[BUFSZ]; char rstbuf[BUFSZ];
int rst_len; int rst_len;
char rst; char rst;

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib JRC backend - main header * Hamlib JRC backend - main header
* Copyright (c) 2001-2004 by Stephane Fillod * Copyright (c) 2001-2004 by Stephane Fillod
* *
* $Id: jrc.h,v 1.12 2005-04-10 21:57:13 fillods Exp $ * $Id: jrc.h,v 1.13 2006-10-07 17:51:00 csete Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -25,7 +25,7 @@
#include <hamlib/rig.h> #include <hamlib/rig.h>
#define BACKEND_VER "0.5" #define BACKEND_VER "0.6"
struct jrc_priv_caps { struct jrc_priv_caps {
int max_freq_len; int max_freq_len;