From 0882cd696dc9ed8af032248f889110abf21e2ec2 Mon Sep 17 00:00:00 2001 From: Nate Bargmann Date: Sun, 21 Aug 2011 20:51:06 -0500 Subject: [PATCH] Update GPL/LGPL header in tests source files. TNX to Lucian Laga, YO6PLB, for the notification. --- tests/config/unix.exp | 26 ++++++------ tests/dumpcaps.c | 28 ++++++------ tests/dumpcaps_rot.c | 22 +++++----- tests/dumpmem.c | 33 +++++++-------- tests/listrigs.c | 29 ++++++------- tests/memcsv.c | 36 ++++++++-------- tests/memload.c | 73 +++++++++++++++----------------- tests/memsave.c | 35 +++++++-------- tests/rig_split_lst.awk | 26 ++++++------ tests/rigctl.c | 24 +++++------ tests/rigctl.test/rigctl.exp | 26 ++++++------ tests/rigctl_parse.c | 26 ++++++------ tests/rigctl_parse.h | 34 +++++++-------- tests/rigctld.c | 22 +++++----- tests/rigmatrix.c | 65 ++++++++++++++-------------- tests/rigmem.c | 46 ++++++++++---------- tests/rigsmtr.c | 42 +++++++++--------- tests/rigswr.c | 40 +++++++++-------- tests/rotctl.c | 22 +++++----- tests/rotctl_parse.c | 22 +++++----- tests/rotctl_parse.h | 24 +++++------ tests/rotctld.c | 22 +++++----- tests/sprintflst.c | 19 ++++----- tests/sprintflst.h | 19 ++++----- tests/testbcd.test/testbcd.exp | 26 ++++++------ tests/testctld.pl | 23 +++++----- tests/testfreq.test/testfreq.exp | 26 ++++++------ tests/testloc.c | 1 - tests/testloc.test/testloc.exp | 26 ++++++------ tests/testrotctld.pl | 23 +++++----- 30 files changed, 427 insertions(+), 459 deletions(-) diff --git a/tests/config/unix.exp b/tests/config/unix.exp index ed41b1e8a..6d6e35b80 100644 --- a/tests/config/unix.exp +++ b/tests/config/unix.exp @@ -1,18 +1,18 @@ # Copyright (C) 1997 - 2001 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Please email any bugs, comments, and/or additions to this file to: # hamlib-developer@lists.sourceforge.net diff --git a/tests/dumpcaps.c b/tests/dumpcaps.c index 4d3a73d11..9e11eb47b 100644 --- a/tests/dumpcaps.c +++ b/tests/dumpcaps.c @@ -3,19 +3,19 @@ * This programs dumps the capabilities of a backend rig. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ @@ -155,8 +155,8 @@ int dumpcaps (RIG* rig, FILE *fout) fprintf(fout, "Serial speed: %d..%d bauds, %d%c%d %s\n", caps->serial_rate_min, caps->serial_rate_max, caps->serial_data_bits, caps->serial_parity == RIG_PARITY_NONE ? 'N': - caps->serial_parity == RIG_PARITY_ODD ? 'O' : - caps->serial_parity == RIG_PARITY_EVEN ? 'E' : + caps->serial_parity == RIG_PARITY_ODD ? 'O' : + caps->serial_parity == RIG_PARITY_EVEN ? 'E' : caps->serial_parity == RIG_PARITY_MARK ? 'M' : 'S', caps->serial_stop_bits, caps->serial_handshake == RIG_HANDSHAKE_NONE ? "" : @@ -449,7 +449,7 @@ int dumpcaps (RIG* rig, FILE *fout) fprintf(fout, "Can Reset:\t%c\n", caps->reset != NULL ? 'Y' : 'N'); fprintf(fout, "Can get Ant:\t%c\n", caps->get_ant != NULL ? 'Y' : 'N'); fprintf(fout, "Can set Ant:\t%c\n", caps->set_ant != NULL ? 'Y' : 'N'); - fprintf(fout, "Can set Transceive:\t%c\n", caps->set_trn != NULL ? 'Y' : + fprintf(fout, "Can set Transceive:\t%c\n", caps->set_trn != NULL ? 'Y' : caps->transceive == RIG_TRN_RIG ? 'E' : 'N'); fprintf(fout, "Can get Transceive:\t%c\n", caps->get_trn != NULL ? 'Y' : 'N'); fprintf(fout, "Can set Func:\t%c\n", caps->set_func != NULL ? 'Y' : 'N'); diff --git a/tests/dumpcaps_rot.c b/tests/dumpcaps_rot.c index a5119f551..b480639ff 100644 --- a/tests/dumpcaps_rot.c +++ b/tests/dumpcaps_rot.c @@ -3,19 +3,19 @@ * This programs dumps the capabilities of a backend rig. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/dumpmem.c b/tests/dumpmem.c index cd4a18986..a1aeba71c 100644 --- a/tests/dumpmem.c +++ b/tests/dumpmem.c @@ -3,23 +3,20 @@ * This programs dumps the mmeory contents of a rig. * * - * $Id: dumpmem.c,v 1.10 2008-04-27 09:56:06 fillods Exp $ + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ @@ -36,7 +33,7 @@ static char *decode_modes(rmode_t modes); static int dump_chan(RIG *rig, int chan_num); int main (int argc, char *argv[]) -{ +{ RIG *my_rig; int status,i,j; @@ -65,7 +62,7 @@ int main (int argc, char *argv[]) printf("rig_set_vfo: error = %s \n", rigerror(status)); } -/* +/* * chan_t is used to describe what memory your rig is equipped with * cf. chan_list field in caps * Example for the Ic706MkIIG (99 memory channels, 2 scan edges, 2 call chans): @@ -188,7 +185,7 @@ int dump_chan(RIG *rig, int chan_num) printf("\n"); } else printf("none\n"); - + if (rig_has_set_level(rig, RIG_LEVEL_PREAMP)) printf("PREAMP: %ddB\n",chan.levels[rig_setting2idx(RIG_LEVEL_PREAMP)].i); if (rig_has_set_level(rig, RIG_LEVEL_ATT)) diff --git a/tests/listrigs.c b/tests/listrigs.c index a12e97bf7..05e9b3c43 100644 --- a/tests/listrigs.c +++ b/tests/listrigs.c @@ -3,23 +3,20 @@ * This programs list all the available the rig capabilities. * * - * $Id: listrigs.c,v 1.13 2008-11-09 14:26:04 y32kn Exp $ + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ @@ -73,7 +70,7 @@ int print_caps_sum(const struct rig_caps *caps, void *data) int main (int argc, char *argv[]) -{ +{ int status; rig_load_all_backends(); diff --git a/tests/memcsv.c b/tests/memcsv.c index 372c00bef..79f034598 100644 --- a/tests/memcsv.c +++ b/tests/memcsv.c @@ -4,23 +4,21 @@ * This program exercises the backup and restore of a radio * using Hamlib. CSV primitives * - * $Id: memcsv.c,v 1.8 2005-04-20 14:47:04 fillods Exp $ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #ifdef HAVE_CONFIG_H @@ -41,7 +39,7 @@ #include "sprintflst.h" -/* +/* * external prototype */ @@ -49,7 +47,7 @@ extern int all; char csv_sep = ','; /* CSV separator */ -/* +/* * Prototypes */ static int dump_csv_chan(RIG *rig, channel_t **chan, int channel_num, const chan_t *chan_list, rig_ptr_t arg); @@ -268,14 +266,14 @@ int dump_csv_chan(RIG *rig, channel_t **chan_pp, int channel_num, const chan_t * if (*chan_pp == NULL) { /* - * Hamlib frontend demand application an allocated + * Hamlib frontend demand application an allocated * channel_t pointer for next round. */ *chan_pp = &chan; return RIG_OK; } - + fprintf(f,"%d%c",chan.channel_num, csv_sep); if (mem_caps->bank_num) { diff --git a/tests/memload.c b/tests/memload.c index e84a64252..3b53920eb 100644 --- a/tests/memload.c +++ b/tests/memload.c @@ -2,23 +2,20 @@ * memload.c - Copyright (C) 2003 Thierry Leconte * * - * $Id: memload.c,v 1.6 2006-10-07 19:56:57 csete Exp $ + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ @@ -43,7 +40,7 @@ static int set_chan(RIG *rig, channel_t *chan ,xmlNodePtr node); int xml_load (RIG *my_rig, const char *infilename) -{ +{ #ifdef HAVE_XML2 xmlDocPtr Doc; xmlNodePtr node; @@ -99,7 +96,7 @@ int xml_load (RIG *my_rig, const char *infilename) } int xml_parm_load (RIG *my_rig, const char *infilename) -{ +{ return -RIG_ENIMPL; } @@ -122,31 +119,31 @@ int set_chan(RIG *rig, channel_t *chan, xmlNodePtr node) /* find chanel caps */ for(i=0;istate.chan_list[i].start<=n && rig->state.chan_list[i].end>=n) + if (rig->state.chan_list[i].start<=n && rig->state.chan_list[i].end>=n) break; fprintf(stderr,"node %d %d\n",n,i); if (rig->state.chan_list[i].mem_caps.bank_num) { prop=xmlGetProp(node, (unsigned char *) "bank_num"); - if(prop!=NULL) + if(prop!=NULL) chan->bank_num = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.channel_desc) { prop=xmlGetProp(node, (unsigned char *) "channel_desc"); - if(prop!=NULL) + if(prop!=NULL) strncpy(chan->channel_desc, (char *) prop, 7); } if (rig->state.chan_list[i].mem_caps.ant) { prop=xmlGetProp(node, (unsigned char *) "ant"); - if(prop!=NULL) + if(prop!=NULL) chan->ant = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.freq) { prop=xmlGetProp(node, (unsigned char *) "freq"); - if(prop!=NULL) + if(prop!=NULL) sscanf((char *) prop,"%"SCNfreq,&chan->freq); } if (rig->state.chan_list[i].mem_caps.mode) { @@ -156,12 +153,12 @@ int set_chan(RIG *rig, channel_t *chan, xmlNodePtr node) } if (rig->state.chan_list[i].mem_caps.width) { prop=xmlGetProp(node, (unsigned char *) "width"); - if(prop!=NULL) + if(prop!=NULL) chan->width = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.tx_freq) { prop=xmlGetProp(node, (unsigned char *) "tx_freq"); - if(prop!=NULL) + if(prop!=NULL) sscanf((char *) prop,"%"SCNfreq,&chan->tx_freq); } if (rig->state.chan_list[i].mem_caps.tx_mode) { @@ -171,7 +168,7 @@ int set_chan(RIG *rig, channel_t *chan, xmlNodePtr node) } if (rig->state.chan_list[i].mem_caps.tx_width) { prop=xmlGetProp(node, (unsigned char *)"tx_width"); - if(prop!=NULL) + if(prop!=NULL) chan->tx_width = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.split) { @@ -201,62 +198,62 @@ int set_chan(RIG *rig, channel_t *chan, xmlNodePtr node) } if (rig->state.chan_list[i].mem_caps.rptr_offs && chan->rptr_shift!=RIG_RPT_SHIFT_NONE) { prop=xmlGetProp(node, (unsigned char *)"rptr_offs"); - if(prop!=NULL) + if(prop!=NULL) chan->rptr_offs = atoi((char *) prop); - } + } } if (rig->state.chan_list[i].mem_caps.tuning_step) { prop=xmlGetProp(node, (unsigned char *)"tuning_step"); - if(prop!=NULL) + if(prop!=NULL) chan->tuning_step = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.rit) { prop=xmlGetProp(node, (unsigned char *)"rit"); - if(prop!=NULL) + if(prop!=NULL) chan->rit = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.xit) { prop=xmlGetProp(node, (unsigned char *)"xit"); - if(prop!=NULL) + if(prop!=NULL) chan->xit = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.funcs) { prop=xmlGetProp(node, (unsigned char *)"funcs"); - if(prop!=NULL) + if(prop!=NULL) sscanf((char *) prop,"%lx",&chan->funcs); } if (rig->state.chan_list[i].mem_caps.ctcss_tone) { prop=xmlGetProp(node, (unsigned char *)"ctcss_tone"); - if(prop!=NULL) + if(prop!=NULL) chan->ctcss_tone = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.ctcss_sql) { prop=xmlGetProp(node, (unsigned char *)"ctcss_sql"); - if(prop!=NULL) + if(prop!=NULL) chan->ctcss_sql = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.dcs_code) { prop=xmlGetProp(node, (unsigned char *)"dcs_code"); - if(prop!=NULL) + if(prop!=NULL) chan->dcs_code = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.dcs_sql) { prop=xmlGetProp(node, (unsigned char *)"dcs_sql"); - if(prop!=NULL) + if(prop!=NULL) chan->dcs_sql = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.scan_group) { prop=xmlGetProp(node, (unsigned char *)"scan_group"); - if(prop!=NULL) + if(prop!=NULL) chan->scan_group = atoi((char *) prop); } if (rig->state.chan_list[i].mem_caps.flags) { prop=xmlGetProp(node, (unsigned char *)"flags"); - if(prop!=NULL) + if(prop!=NULL) sscanf((char *) prop,"%x",&chan->flags); } - + return 0; } #endif diff --git a/tests/memsave.c b/tests/memsave.c index 49c0352b8..04c73a1d0 100644 --- a/tests/memsave.c +++ b/tests/memsave.c @@ -3,23 +3,20 @@ * Copyright (C) 2008-2010 Stephane Fillod * * - * $Id: memsave.c,v 1.11 2008-04-27 09:56:06 fillods Exp $ + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #ifdef HAVE_CONFIG_H #include @@ -42,7 +39,7 @@ static int dump_xml_chan(RIG *rig, channel_t **chan, int channel_num, const chan #endif int xml_save (RIG *rig, const char *outfilename) -{ +{ #ifdef HAVE_XML2 int retval; xmlDocPtr Doc; @@ -69,7 +66,7 @@ int xml_save (RIG *rig, const char *outfilename) xmlFreeDoc(Doc); xmlCleanupParser(); - + return 0; #else return -RIG_ENAVAIL; @@ -98,7 +95,7 @@ int dump_xml_chan(RIG *rig, channel_t **chan_pp, int chan_num, const chan_t *cha if (*chan_pp == NULL) { /* - * Hamlib frontend demand application an allocated + * Hamlib frontend demand application an allocated * channel_t pointer for next round. */ *chan_pp = &chan; @@ -221,7 +218,7 @@ int dump_xml_chan(RIG *rig, channel_t **chan_pp, int chan_num, const chan_t *cha sprintf(attrbuf,"%x",chan.flags); xmlNewProp(node, (unsigned char *) "flags", (unsigned char *) attrbuf); } - + return 0; } #endif diff --git a/tests/rig_split_lst.awk b/tests/rig_split_lst.awk index 8726edde9..e4c38ab25 100755 --- a/tests/rig_split_lst.awk +++ b/tests/rig_split_lst.awk @@ -2,19 +2,19 @@ # (c) 2007-2009 Stephane Fillod -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # This program is to be piped from: # tests/rigctl -l |sort -n | rig_split_lst.awk diff --git a/tests/rigctl.c b/tests/rigctl.c index 544c1a093..6d1580463 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -5,22 +5,20 @@ * It takes commands in interactive mode as well as * from command line options. * - * $Id: rigctl.c,v 1.70 2009-01-04 14:49:17 fillods Exp $ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/rigctl.test/rigctl.exp b/tests/rigctl.test/rigctl.exp index 21ef6c015..9d3bae83e 100644 --- a/tests/rigctl.test/rigctl.exp +++ b/tests/rigctl.test/rigctl.exp @@ -1,18 +1,18 @@ # Copyright (C) 1997 - 2001 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Please email any bugs, comments, and/or additions to this file to: # hamlib-developer@lists.sourceforge.net diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index f1f32ed24..90e7d4642 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -1,26 +1,26 @@ /* * rigctl_parse.c - (C) Stephane Fillod 2000-2011 - * (C) Terry Embry 2008-2009 - * (C) The Hamlib Group 2010 + * (C) Terry Embry 2008-2009 + * (C) The Hamlib Group 2010 * * This program tests/controls a radio using Hamlib. * It takes commands in interactive mode as well as * from command line options. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/rigctl_parse.h b/tests/rigctl_parse.h index 7138c73d6..ce62d3d7b 100644 --- a/tests/rigctl_parse.h +++ b/tests/rigctl_parse.h @@ -2,24 +2,24 @@ * rigctl_parse.h - (C) Stephane Fillod 2000-2010 * * This program test/control a radio using Hamlib. - * It takes commands in interactive mode as well as + * It takes commands in interactive mode as well as * from command line options. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * */ #ifndef RIGCTL_PARSE_H @@ -28,14 +28,14 @@ #include #include -/* +/* * external prototype */ int dumpcaps (RIG *, FILE *); int dumpconf (RIG *, FILE *); -/* +/* * Prototypes */ void usage_rig(FILE *); diff --git a/tests/rigctld.c b/tests/rigctld.c index e90fe08c2..f542b8673 100644 --- a/tests/rigctld.c +++ b/tests/rigctld.c @@ -5,19 +5,19 @@ * It takes commands from network connection. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/rigmatrix.c b/tests/rigmatrix.c index e4cd0278e..2e4203630 100644 --- a/tests/rigmatrix.c +++ b/tests/rigmatrix.c @@ -4,23 +4,20 @@ * The code is rather ugly since this is only a try out. * * - * $Id: rigmatrix.c,v 1.22 2008-05-13 13:35:34 y32kn Exp $ + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #include @@ -103,10 +100,10 @@ int print_caps_sum(const struct rig_caps *caps, void *data) */ int print_caps_parameters(const struct rig_caps *caps, void *data) { - printf("%s", + printf("%s", caps->rig_model, caps->model_name); - + switch (caps->ptt_type) { case RIG_PTT_RIG: printf("rig"); @@ -164,7 +161,7 @@ int print_caps_parameters(const struct rig_caps *caps, void *data) printf("Unknown"); } - printf("%d%d%d%c%d%s", + printf("%d%d%d%c%d%s", caps->serial_rate_min, caps->serial_rate_max, caps->serial_data_bits, caps->serial_parity==RIG_PARITY_NONE?'N': @@ -192,10 +189,10 @@ int print_caps_parameters(const struct rig_caps *caps, void *data) */ int print_caps_caps(const struct rig_caps *caps, void *data) { - printf("%s", + printf("%s", caps->rig_model, caps->model_name); - + /* targetable_vfo is not a function, but a boolean */ print_yn(caps->targetable_vfo); @@ -247,11 +244,11 @@ int print_caps_parm(const struct rig_caps *caps, void *data) parm = (*(int*)data)? caps->has_set_parm : caps->has_get_parm; - printf("%s", + printf("%s", (*(int*)data)? "set":"get", caps->rig_model, caps->model_name); - + /* * bitmap_parm: only those who have a label */ @@ -277,11 +274,11 @@ int print_caps_level(const struct rig_caps *caps, void *data) level = (*(int*)data)? caps->has_set_level : caps->has_get_level; - printf("%s", + printf("%s", (*(int*)data)? "set":"get", caps->rig_model, caps->model_name); - + /* * bitmap_level: only those who have a label */ @@ -307,11 +304,11 @@ int print_caps_func(const struct rig_caps *caps, void *data) func = (*(int*)data)? caps->has_set_func : caps->has_get_func; - printf("%s", + printf("%s", (*(int*)data)? "set":"get", caps->rig_model, caps->model_name); - + /* * bitmap_func: only those who have a label */ @@ -332,11 +329,11 @@ int print_caps_func(const struct rig_caps *caps, void *data) */ int print_caps_range(const struct rig_caps *caps, void *data) { - create_png_range(caps->rx_range_list2, caps->tx_range_list2, + create_png_range(caps->rx_range_list2, caps->tx_range_list2, caps->rig_model); printf("%s" - "", + "", caps->rig_model, caps->model_name, caps->rig_model); @@ -391,7 +388,7 @@ static void draw_range(const freq_range_t range_list[], gdImagePtr im_rng, int h */ start_pix = range_list[i].start; end_pix = range_list[i].end; - if ((range_list[i].start > MHz(30) && range_list[i].start < MHz(300)) + if ((range_list[i].start > MHz(30) && range_list[i].start < MHz(300)) || (range_list[i].start < MHz(30) && range_list[i].end > MHz(30))) { start_pix = (start_pix-MHz(30)) / MHz(300) * RANGE_WIDTH; end_pix = (end_pix-MHz(30)) / MHz(300) * RANGE_WIDTH; @@ -410,7 +407,7 @@ static void draw_range(const freq_range_t range_list[], gdImagePtr im_rng, int h */ start_pix = range_list[i].start; end_pix = range_list[i].end; - if ((range_list[i].start > MHz(300) && range_list[i].start < GHz(3)) + if ((range_list[i].start > MHz(300) && range_list[i].start < GHz(3)) || (range_list[i].start < MHz(300) && range_list[i].end > MHz(300))) { start_pix = (start_pix-MHz(300)) / GHz(3) * RANGE_WIDTH; end_pix = (end_pix-MHz(300)) / GHz(3) * RANGE_WIDTH; @@ -466,11 +463,11 @@ int create_png_range(const freq_range_t rx_range_list[], gdImageRectangle(im_rng, IM_LGD, UHF_H, IM_LGD+RANGE_WIDTH-1, UHF_H+RANGE_HEIGHT-1, black); /* gdImageStringUp */ - gdImageString(im_rng, gdFontSmall, 1, HF_H+1, + gdImageString(im_rng, gdFontSmall, 1, HF_H+1, (unsigned char *) "HF", black); - gdImageString(im_rng, gdFontSmall, 1, VHF_H+1, + gdImageString(im_rng, gdFontSmall, 1, VHF_H+1, (unsigned char *) "VHF", black); - gdImageString(im_rng, gdFontSmall, 1, UHF_H+1, + gdImageString(im_rng, gdFontSmall, 1, UHF_H+1, (unsigned char *) "UHF", black); /* Make output image interlaced (allows "fade in" in some viewers, @@ -488,7 +485,7 @@ int create_png_range(const freq_range_t rx_range_list[], } int main (int argc, char *argv[]) -{ +{ int status; time_t gentime; int set_or_get; diff --git a/tests/rigmem.c b/tests/rigmem.c index cf3c33bc3..02fdb8d26 100644 --- a/tests/rigmem.c +++ b/tests/rigmem.c @@ -5,23 +5,21 @@ * This program exercises the backup and restore of a radio * using Hamlib. * - * $Id: rigmem.c,v 1.5 2005-04-20 14:47:56 fillods Exp $ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #ifdef HAVE_CONFIG_H @@ -45,7 +43,7 @@ #define MAXNBOPT 100 /* max number of different options */ -/* +/* * external prototype */ @@ -59,7 +57,7 @@ extern int csv_load (RIG *rig, const char *infilename); extern int csv_parm_save (RIG *rig, const char *outfilename); extern int csv_parm_load (RIG *rig, const char *infilename); -/* +/* * Prototypes */ void usage(); @@ -69,7 +67,7 @@ int set_conf(RIG *rig, char *conf_parms); int clear_chans (RIG *rig, const char *infilename); /* - * Reminder: when adding long options, + * Reminder: when adding long options, * keep up to date SHORT_OPTIONS, usage()'s output and man page. thanks. * NB: do NOT use -W since it's reserved by POSIX. */ @@ -97,7 +95,7 @@ static struct option long_options[] = int all; int main (int argc, char *argv[]) -{ +{ RIG *rig; /* handle to rig (nstance) */ rig_model_t my_model = RIG_MODEL_DUMMY; @@ -108,7 +106,7 @@ int main (int argc, char *argv[]) int serial_rate = 0; char *civaddr = NULL; /* NULL means no need to set conf */ char conf_parms[MAXCONFLEN] = ""; - extern char csv_sep; + extern char csv_sep; while(1) { int c; @@ -201,7 +199,7 @@ int main (int argc, char *argv[]) rig = rig_init(my_model); if (!rig) { - fprintf(stderr, "Unknown rig num %d, or initialization error.\n", + fprintf(stderr, "Unknown rig num %d, or initialization error.\n", my_model); fprintf(stderr, "Please check with --list option.\n"); exit(2); @@ -217,14 +215,14 @@ int main (int argc, char *argv[]) if (rig->caps->set_channel == NULL && rig->caps->get_channel == NULL && rig->caps->set_chan_all_cb == NULL && rig->caps->get_chan_all_cb == NULL && (rig->caps->set_mem == NULL || rig->caps->set_vfo == NULL)) { - fprintf(stderr, "Error: rig num %d has no memory support implemented/available.\n", + fprintf(stderr, "Error: rig num %d has no memory support implemented/available.\n", my_model); exit(3); } /* check channel description */ if (rig->caps->chan_list[0].type == 0) { - fprintf(stderr, "Error: rig num %d has no channel list.\n", + fprintf(stderr, "Error: rig num %d has no channel list.\n", my_model); exit(3); } @@ -247,7 +245,7 @@ int main (int argc, char *argv[]) if (verbose > 0) printf("Opened rig model %d, '%s'\n", rig->caps->rig_model, rig->caps->model_name); - rig_debug(RIG_DEBUG_VERBOSE, "Backend version: %s, Status: %s\n", + rig_debug(RIG_DEBUG_VERBOSE, "Backend version: %s, Status: %s\n", rig->caps->version, rig_strstatus(rig->caps->status)); /* on some rigs, this accelerates the backup/restore */ diff --git a/tests/rigsmtr.c b/tests/rigsmtr.c index cdb4f1216..e2a678c33 100644 --- a/tests/rigsmtr.c +++ b/tests/rigsmtr.c @@ -3,23 +3,21 @@ * * This program output S-meter vs. Azimuth curve using Hamlib. * - * $Id: rigsmtr.c,v 1.2 2008-01-05 15:06:35 fillods Exp $ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #ifdef HAVE_CONFIG_H @@ -41,7 +39,7 @@ #include "misc.h" -/* +/* * Prototypes */ static void usage(); @@ -50,7 +48,7 @@ static int set_conf_rig(RIG *rig, char *conf_parms); static int set_conf_rot(ROT *rot, char *conf_parms); /* - * Reminder: when adding long options, + * Reminder: when adding long options, * keep up to date SHORT_OPTIONS, usage()'s output and man page. thanks. * NB: do NOT use -W since it's reserved by POSIX. */ @@ -76,7 +74,7 @@ static struct option long_options[] = int main (int argc, char *argv[]) -{ +{ RIG *rig; /* handle to rig (instance) */ ROT *rot; /* handle to rotator (instance) */ rig_model_t rig_model = RIG_MODEL_DUMMY; @@ -201,7 +199,7 @@ int main (int argc, char *argv[]) rig = rig_init(rig_model); if (!rig) { - fprintf(stderr, "Unknown rig num %d, or initialization error.\n", + fprintf(stderr, "Unknown rig num %d, or initialization error.\n", rig_model); fprintf(stderr, "Please check with --list option.\n"); exit(2); @@ -246,7 +244,7 @@ int main (int argc, char *argv[]) rot = rot_init(rot_model); if (!rot) { - fprintf(stderr, "Unknown rot num %d, or initialization error.\n", + fprintf(stderr, "Unknown rot num %d, or initialization error.\n", rot_model); fprintf(stderr, "Please check with --list option.\n"); exit(2); @@ -280,7 +278,7 @@ int main (int argc, char *argv[]) /*******************************/ - if (optind < argc) + if (optind < argc) step = atof(argv[optind])*1e6; fprintf(stderr,"Setting rotator to azimuth %.1f°\n",rot->state.min_az); @@ -294,7 +292,7 @@ int main (int argc, char *argv[]) fprintf(stderr,"Now initiating full 360° rotation...\n"); rot_set_position (rot, rot->state.max_az, 0); - + /* TODO: check CW or CCW */ /* disable AGC? */ diff --git a/tests/rigswr.c b/tests/rigswr.c index 5c4f578d0..80ba56273 100644 --- a/tests/rigswr.c +++ b/tests/rigswr.c @@ -4,23 +4,21 @@ * This program output swr curve value * using Hamlib. * - * $Id: rigswr.c,v 1.3 2005-04-04 22:26:38 fillods Exp $ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #ifdef HAVE_CONFIG_H @@ -40,7 +38,7 @@ #include "misc.h" -/* +/* * Prototypes */ static void usage(); @@ -48,7 +46,7 @@ static void version(); static int set_conf(RIG *rig, char *conf_parms); /* - * Reminder: when adding long options, + * Reminder: when adding long options, * keep up to date SHORT_OPTIONS, usage()'s output and man page. thanks. * NB: do NOT use -W since it's reserved by POSIX. */ @@ -72,7 +70,7 @@ static struct option long_options[] = int main (int argc, char *argv[]) -{ +{ RIG *rig; /* handle to rig (nstance) */ rig_model_t my_model = RIG_MODEL_DUMMY; @@ -189,7 +187,7 @@ int main (int argc, char *argv[]) rig = rig_init(my_model); if (!rig) { - fprintf(stderr, "Unknown rig num %d, or initialization error.\n", + fprintf(stderr, "Unknown rig num %d, or initialization error.\n", my_model); fprintf(stderr, "Please check with --list option.\n"); exit(2); @@ -236,9 +234,9 @@ int main (int argc, char *argv[]) freq=atof(argv[optind++]); freqstop=atof(argv[optind++]); - if (optind < argc) + if (optind < argc) step=atof(argv[optind]); - + rig_set_freq(rig,RIG_VFO_CURR,freq); rig_set_mode(rig,RIG_VFO_CURR,RIG_MODE_CW,RIG_PASSBAND_NORMAL); diff --git a/tests/rotctl.c b/tests/rotctl.c index 42ca4dfd2..d94fa1182 100644 --- a/tests/rotctl.c +++ b/tests/rotctl.c @@ -6,19 +6,19 @@ * from command line options. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index 553ddad11..ee9ae1e6b 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -6,19 +6,19 @@ * from command line options. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/rotctl_parse.h b/tests/rotctl_parse.h index 459b814bf..d82d1935a 100644 --- a/tests/rotctl_parse.h +++ b/tests/rotctl_parse.h @@ -5,22 +5,20 @@ * It takes commands in interactive mode as well as * from command line options. * - * $Id: rotctl_parse.h,v 1.1 2008-09-12 22:55:09 fillods Exp $ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/rotctld.c b/tests/rotctld.c index bc9a49c33..b995d4e32 100644 --- a/tests/rotctld.c +++ b/tests/rotctld.c @@ -5,19 +5,19 @@ * It takes commands from network connection. * * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ diff --git a/tests/sprintflst.c b/tests/sprintflst.c index 94bc5ed0d..0f5caeb85 100644 --- a/tests/sprintflst.c +++ b/tests/sprintflst.c @@ -3,21 +3,20 @@ * Copyright (c) 2000-2009 by Stephane Fillod * Copyright (c) 2000-2003 by Frank Singleton * - * $Id: sprintflst.c,v 1.6 2009-02-17 08:03:52 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 - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Library General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * You should have received a copy of the GNU Library General Public + * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ diff --git a/tests/sprintflst.h b/tests/sprintflst.h index 197374ba5..4b110c09d 100644 --- a/tests/sprintflst.h +++ b/tests/sprintflst.h @@ -2,21 +2,20 @@ * Hamlib Interface - sprintf toolbox header * Copyright (c) 2003-2008 by Stephane Fillod * - * $Id: sprintflst.h,v 1.2 2008-05-23 14:26:09 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 - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Library General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * You should have received a copy of the GNU Library General Public + * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ diff --git a/tests/testbcd.test/testbcd.exp b/tests/testbcd.test/testbcd.exp index 9ac66cc63..656bf6d35 100644 --- a/tests/testbcd.test/testbcd.exp +++ b/tests/testbcd.test/testbcd.exp @@ -1,18 +1,18 @@ # Copyright (C) 1997 - 2001 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Please email any bugs, comments, and/or additions to this file to: # hamlib-developer@lists.sourceforge.net diff --git a/tests/testctld.pl b/tests/testctld.pl index b18c40e75..a18766d97 100755 --- a/tests/testctld.pl +++ b/tests/testctld.pl @@ -3,7 +3,6 @@ # testctld.pl - (C) 2008,2010 Nate Bargmann, n0nb@arrl.net # A Perl test script for the rigctld program. # -# $Id$ # # It connects to the rigctld TCP port (default 4532) and queries the daemon # for some common rig information and sets some values. It also aims to @@ -13,19 +12,19 @@ # response mode. See the rigctld(8) man page for details. ############################################################################# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # See the file 'COPYING' in the main Hamlib distribution directory for the # complete text of the GNU Public License version 2. diff --git a/tests/testfreq.test/testfreq.exp b/tests/testfreq.test/testfreq.exp index 43325efac..a636c3598 100644 --- a/tests/testfreq.test/testfreq.exp +++ b/tests/testfreq.test/testfreq.exp @@ -1,18 +1,18 @@ # Copyright (C) 1997 - 2001 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Please email any bugs, comments, and/or additions to this file to: # hamlib-developer@lists.sourceforge.net diff --git a/tests/testloc.c b/tests/testloc.c index 962420e65..99fa00db4 100644 --- a/tests/testloc.c +++ b/tests/testloc.c @@ -8,7 +8,6 @@ * to >= 1 or <= 6. If two locators are given, then the qrb is also * calculated. * - * $Id: testloc.c,v 1.12 2004-01-16 21:19:03 fillods Exp $ * */ diff --git a/tests/testloc.test/testloc.exp b/tests/testloc.test/testloc.exp index f38044dd2..763e037d5 100644 --- a/tests/testloc.test/testloc.exp +++ b/tests/testloc.test/testloc.exp @@ -1,18 +1,18 @@ # Copyright (C) 1997 - 2001 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Please email any bugs, comments, and/or additions to this file to: # hamlib-developer@lists.sourceforge.net diff --git a/tests/testrotctld.pl b/tests/testrotctld.pl index 08c44207c..81322786d 100755 --- a/tests/testrotctld.pl +++ b/tests/testrotctld.pl @@ -3,7 +3,6 @@ # testrotctld.pl - (C) 2008,2010 Nate Bargmann, n0nb@arrl.net # A Perl test script for the rotctld program. # -# $Id$ # # It connects to the rotctld TCP port (default 4533) and queries the daemon # for some common rot information and sets some values. It also aims to @@ -13,19 +12,19 @@ # response mode. See the rotctld(8) man page for details. ############################################################################# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # See the file 'COPYING' in the main Hamlib distribution directory for the # complete text of the GNU Public License version 2.