From 47f83303f8b93665a0751289cb73250ed5886d75 Mon Sep 17 00:00:00 2001 From: Alexandru Csete OZ9AEC Date: Sat, 7 Oct 2006 19:00:05 +0000 Subject: [PATCH] - 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@2128 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- easycomm/easycomm.c | 16 ++++++++-------- rft/ekd500.c | 4 ++-- rft/rft.c | 4 ++-- tapr/dsp10.c | 4 ++-- tapr/tapr.c | 4 ++-- wj/wj.c | 6 +++--- wj/wj8888.c | 4 ++-- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/easycomm/easycomm.c b/easycomm/easycomm.c index 4744cc07c..a165bc72c 100644 --- a/easycomm/easycomm.c +++ b/easycomm/easycomm.c @@ -3,7 +3,7 @@ * Copyright (c) 2001-2003 by Stephane Fillod * Contributed by Francois Retief * - * $Id: easycomm.c,v 1.7 2005-11-19 14:45:54 fillods Exp $ + * $Id: easycomm.c,v 1.8 2006-10-07 19:00:05 csete 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 @@ -80,7 +80,7 @@ easycomm_transaction (ROT *rot, const char *cmdstr, char *data, size_t data_len) static int easycomm_rot_set_position(ROT *rot, azimuth_t az, elevation_t el) { - unsigned char cmdstr[64]; + char cmdstr[64]; int retval; rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __FUNCTION__, az, el); @@ -96,7 +96,7 @@ easycomm_rot_set_position(ROT *rot, azimuth_t az, elevation_t el) static int easycomm_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el) { - unsigned char cmdstr[16], ackbuf[32]; + char cmdstr[16], ackbuf[32]; int retval; int t; @@ -155,7 +155,7 @@ easycomm_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el) static int easycomm_rot_stop(ROT *rot) { - unsigned char ackbuf[32]; + char ackbuf[32]; int retval; rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__); @@ -172,7 +172,7 @@ easycomm_rot_stop(ROT *rot) static int easycomm_rot_reset(ROT *rot, rot_reset_t rst) { - unsigned char ackbuf[32]; + char ackbuf[32]; int retval; rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__); @@ -186,7 +186,7 @@ easycomm_rot_reset(ROT *rot, rot_reset_t rst) static int easycomm_rot_park(ROT *rot) { - unsigned char ackbuf[32]; + char ackbuf[32]; int retval; rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__); @@ -243,7 +243,7 @@ const struct rot_caps easycomm1_rot_caps = { .rot_model = ROT_MODEL_EASYCOMM1, .model_name = "EasycommI", .mfg_name = "Hamlib", - .version = "0.2", + .version = "0.3", .copyright = "LGPL", .status = RIG_STATUS_BETA, .rot_type = ROT_TYPE_OTHER, @@ -277,7 +277,7 @@ const struct rot_caps easycomm2_rot_caps = { .rot_model = ROT_MODEL_EASYCOMM2, .model_name = "EasycommII", .mfg_name = "Hamlib", - .version = "0.2", + .version = "0.3", .copyright = "LGPL", .status = RIG_STATUS_BETA, .rot_type = ROT_TYPE_OTHER, diff --git a/rft/ekd500.c b/rft/ekd500.c index d4306c09a..248a1a782 100644 --- a/rft/ekd500.c +++ b/rft/ekd500.c @@ -2,7 +2,7 @@ * Hamlib RFT backend - EKD-500 description * Copyright (c) 2003-2005 by Thomas B. Ruecker * - * $Id: ekd500.c,v 1.3 2005-04-10 21:57:13 fillods Exp $ + * $Id: ekd500.c,v 1.4 2006-10-07 18:48:34 csete 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 @@ -54,7 +54,7 @@ const struct rig_caps ekd500_caps = { .rig_model = RIG_MODEL_EKD500, .model_name = "EKD-500", .mfg_name = "RFT", -.version = "0.3", +.version = "0.4", .copyright = "LGPL", .status = RIG_STATUS_ALPHA, .rig_type = RIG_TYPE_RECEIVER, diff --git a/rft/rft.c b/rft/rft.c index 2acaeb209..239df5f35 100644 --- a/rft/rft.c +++ b/rft/rft.c @@ -2,7 +2,7 @@ * Hamlib RFT backend - main file * Copyright (c) 2003 by Thomas B. Ruecker * - * $Id: rft.c,v 1.2 2005-04-10 21:47:14 fillods Exp $ + * $Id: rft.c,v 1.3 2006-10-07 18:48:34 csete 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 @@ -82,7 +82,7 @@ int rft_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, int *dat */ int rft_set_freq(RIG *rig, vfo_t vfo, freq_t freq) { - unsigned char freqbuf[16], ackbuf[16]; + char freqbuf[16], ackbuf[16]; int freq_len, ack_len, retval; /* diff --git a/tapr/dsp10.c b/tapr/dsp10.c index 0630413b2..84b05cba7 100644 --- a/tapr/dsp10.c +++ b/tapr/dsp10.c @@ -2,7 +2,7 @@ * Hamlib TAPR backend - DSP-10 description * Copyright (c) 2003 by Stephane Fillod * - * $Id: dsp10.c,v 1.1 2003-10-07 22:15:49 fillods Exp $ + * $Id: dsp10.c,v 1.2 2006-10-07 18:52:09 csete 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 @@ -61,7 +61,7 @@ const struct rig_caps dsp10_caps = { .rig_model = RIG_MODEL_DSP10, .model_name = "DSP-10", .mfg_name = "TAPR", -.version = "0.1", +.version = "0.2", .copyright = "LGPL", .status = RIG_STATUS_ALPHA, .rig_type = RIG_TYPE_TRANSCEIVER, diff --git a/tapr/tapr.c b/tapr/tapr.c index a2a78f675..d84d25ce3 100644 --- a/tapr/tapr.c +++ b/tapr/tapr.c @@ -2,7 +2,7 @@ * Hamlib TAPR backend - main file * Copyright (c) 2003 by Stephane Fillod * - * $Id: tapr.c,v 1.1 2003-10-07 22:15:49 fillods Exp $ + * $Id: tapr.c,v 1.2 2006-10-07 18:52:09 csete 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 @@ -67,7 +67,7 @@ static int tapr_cmd(RIG *rig, unsigned char cmd, unsigned char c1, unsigned char cmdbuf[4] = c3; cmdbuf[5] = c4; - retval = write_block(&rs->rigport, cmdbuf, 6); + retval = write_block(&rs->rigport, (char *) cmdbuf, 6); if (retval != RIG_OK) return retval; diff --git a/wj/wj.c b/wj/wj.c index f70c13159..0d6f2fe66 100644 --- a/wj/wj.c +++ b/wj/wj.c @@ -2,7 +2,7 @@ * Hamlib Watkins-Johnson backend - main file * Copyright (c) 2004 by Stephane Fillod * - * $Id: wj.c,v 1.2 2005-04-10 21:49:38 fillods Exp $ + * $Id: wj.c,v 1.3 2006-10-07 18:55:19 csete 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 @@ static int wj_transaction(RIG *rig, int monitor) serial_flush(&rig->state.rigport); - retval = write_block(&rig->state.rigport, buf, CMDSZ); + retval = write_block(&rig->state.rigport, (char *) buf, CMDSZ); if (retval != RIG_OK) return retval; @@ -162,7 +162,7 @@ static int wj_transaction(RIG *rig, int monitor) /* * Transceiver sends back ">" */ - retval = read_block(&rig->state.rigport, rxbuf, CMDSZ); + retval = read_block(&rig->state.rigport, (char *) rxbuf, CMDSZ); if (retval < 0 || retval > CMDSZ) return -RIG_ERJCTED; diff --git a/wj/wj8888.c b/wj/wj8888.c index f70360189..7d09c235e 100644 --- a/wj/wj8888.c +++ b/wj/wj8888.c @@ -2,7 +2,7 @@ * Hamlib Watkins-Johnson backend - WJ-8888 description * Copyright (c) 2004 by Stephane Fillod * - * $Id: wj8888.c,v 1.1 2004-09-12 21:29:10 fillods Exp $ + * $Id: wj8888.c,v 1.2 2006-10-07 18:55:19 csete 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 @@ -59,7 +59,7 @@ const struct rig_caps wj8888_caps = { .rig_model = RIG_MODEL_WJ8888, .model_name = "WJ-8888", .mfg_name = "Watkins-Johnson", -.version = "0.1", +.version = "0.2", .copyright = "LGPL", .status = RIG_STATUS_UNTESTED, .rig_type = RIG_TYPE_RECEIVER,