From 0d0e9f46a77ad59f393328b3097fb6312c767ccb Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 3 Jun 2021 14:34:30 -0400 Subject: [PATCH] 2021-06-03 Fred Gleason * Cleaned up 'unused variable' warnings in 'apis/rivcapi/'. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ apis/rivwebcapi/rivwebcapi/rd_addcart.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_addcut.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_assignschedcode.c | 4 ++-- apis/rivwebcapi/rivwebcapi/rd_audioinfo.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_audiostore.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_common.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_copyaudio.c | 4 ++-- apis/rivwebcapi/rivwebcapi/rd_deleteaudio.c | 4 ++-- apis/rivwebcapi/rivwebcapi/rd_deletepodcast.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_editcart.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_import.c | 7 ++----- apis/rivwebcapi/rivwebcapi/rd_listcart.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listcartcuts.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listcartscuts.c | 2 -- apis/rivwebcapi/rivwebcapi/rd_listcut.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listcuts.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listgroup.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listgroups.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listlog.c | 5 +---- apis/rivwebcapi/rivwebcapi/rd_listlogs.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listschedcodes.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listservices.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_listsystemsettings.c | 3 +-- apis/rivwebcapi/rivwebcapi/rd_postimage.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_postpodcast.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_postrss.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_removecart.c | 4 ++-- apis/rivwebcapi/rivwebcapi/rd_removecut.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_removeimage.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_removepodcast.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_removerss.c | 5 ++--- apis/rivwebcapi/rivwebcapi/rd_savepodcast.c | 8 ++------ apis/rivwebcapi/rivwebcapi/rd_unassignschedcode.c | 4 ++-- 34 files changed, 49 insertions(+), 83 deletions(-) diff --git a/ChangeLog b/ChangeLog index 038e3793..7bb7240b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21860,3 +21860,5 @@ * Cleaned up compile warnings in webget.cgi. 2021-06-02 Fred Gleason * Cleaned up compile warnings in rdgen(1). +2021-06-03 Fred Gleason + * Cleaned up 'unused variable' warnings in 'apis/rivcapi/'. diff --git a/apis/rivwebcapi/rivwebcapi/rd_addcart.c b/apis/rivwebcapi/rivwebcapi/rd_addcart.c index 658b7802..0ccfc24b 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_addcart.c +++ b/apis/rivwebcapi/rivwebcapi/rd_addcart.c @@ -3,7 +3,7 @@ * Implementation of the Add Cart Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -187,7 +187,6 @@ int RD_AddCart(struct rd_cart *cart[], CURLcode res; char user_agent_string[255]; char cart_buffer[50]; - char cut_buffer[50]; struct curl_httppost *first=NULL; struct curl_httppost *last=NULL; diff --git a/apis/rivwebcapi/rivwebcapi/rd_addcut.c b/apis/rivwebcapi/rivwebcapi/rd_addcut.c index 21108585..917312fc 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_addcut.c +++ b/apis/rivwebcapi/rivwebcapi/rd_addcut.c @@ -3,7 +3,7 @@ * Implementation of the Add Cut Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -39,7 +39,6 @@ struct xml_data { static void XMLCALL __AddCutElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"cut")==0) { // Allocate a new cut entry xml_data->cut=realloc(xml_data->cut, diff --git a/apis/rivwebcapi/rivwebcapi/rd_assignschedcode.c b/apis/rivwebcapi/rivwebcapi/rd_assignschedcode.c index e58af934..6fb9cb0b 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_assignschedcode.c +++ b/apis/rivwebcapi/rivwebcapi/rd_assignschedcode.c @@ -3,7 +3,7 @@ * Implementation of the AssignSchedulCodes Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -54,7 +54,7 @@ static void XMLCALL __AssignSchedCodeElementData(void *data,const XML_Char *s, static void XMLCALL __AssignSchedCodeElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } diff --git a/apis/rivwebcapi/rivwebcapi/rd_audioinfo.c b/apis/rivwebcapi/rivwebcapi/rd_audioinfo.c index 07aea275..32a35db8 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_audioinfo.c +++ b/apis/rivwebcapi/rivwebcapi/rd_audioinfo.c @@ -3,7 +3,7 @@ * Implementation of the AudioInfo Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -39,7 +39,6 @@ struct xml_data { static void XMLCALL __AudioInfoElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"audioInfo")==0) { // Allocate a new audioinfo entry xml_data->audioinfo=realloc(xml_data->audioinfo, diff --git a/apis/rivwebcapi/rivwebcapi/rd_audiostore.c b/apis/rivwebcapi/rivwebcapi/rd_audiostore.c index 2de2c88a..656b4eae 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_audiostore.c +++ b/apis/rivwebcapi/rivwebcapi/rd_audiostore.c @@ -3,7 +3,7 @@ * Implementation of the AudioStore Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason >fredg@paravelsystems.com> + * (C) Copyright 2018-2021 Fred Gleason >fredg@paravelsystems.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -38,7 +38,6 @@ struct xml_data { static void XMLCALL __AudioStoreElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"audioStore")==0) { // Allocate a new audiostore entry xml_data->audiostore=realloc(xml_data->audiostore, diff --git a/apis/rivwebcapi/rivwebcapi/rd_common.c b/apis/rivwebcapi/rivwebcapi/rd_common.c index 66f68713..9d30113d 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_common.c +++ b/apis/rivwebcapi/rivwebcapi/rd_common.c @@ -2,7 +2,7 @@ * * Common Utility Functions for the Rivendell Access Library * - * (C) Copyright 2015-2019 Fred Gleason + * (C) Copyright 2015-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -162,7 +162,6 @@ size_t RD_Cnv_tm_to_DTString(struct tm *tmptr,char * dest) int offhr = 0; int offmin = 0; int val; - int leap = 0; if (!validate_tm(tmptr)) { diff --git a/apis/rivwebcapi/rivwebcapi/rd_copyaudio.c b/apis/rivwebcapi/rivwebcapi/rd_copyaudio.c index c42395de..96751168 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_copyaudio.c +++ b/apis/rivwebcapi/rivwebcapi/rd_copyaudio.c @@ -3,7 +3,7 @@ * Implementation of the Copy Audio Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -51,7 +51,7 @@ static void XMLCALL __CopyAudioElementData(void *data,const XML_Char *s, static void XMLCALL __CopyAudioElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } diff --git a/apis/rivwebcapi/rivwebcapi/rd_deleteaudio.c b/apis/rivwebcapi/rivwebcapi/rd_deleteaudio.c index 8f293c3f..8221f4aa 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_deleteaudio.c +++ b/apis/rivwebcapi/rivwebcapi/rd_deleteaudio.c @@ -3,6 +3,7 @@ * Implementation of the Delete Audio Rivendell Access Library * * (C) Copyright 2015 Todd Baker + * (C) Copyright 2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -50,7 +51,7 @@ static void XMLCALL __DeleteAudioElementData(void *data,const XML_Char *s, static void XMLCALL __DeleteAudioElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -73,7 +74,6 @@ int RD_DeleteAudio( const char hostname[], const unsigned cutnumber, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_deletepodcast.c b/apis/rivwebcapi/rivwebcapi/rd_deletepodcast.c index 1c5a8af1..fee02b85 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_deletepodcast.c +++ b/apis/rivwebcapi/rivwebcapi/rd_deletepodcast.c @@ -3,7 +3,7 @@ * Implementation of the Remove RSS item audio Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __DeletePodcastElementData(void *data,const XML_Char *s, static void XMLCALL __DeletePodcastElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_DeletePodcast( const char hostname[], const unsigned cast_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_editcart.c b/apis/rivwebcapi/rivwebcapi/rd_editcart.c index 8742a861..35a3f574 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_editcart.c +++ b/apis/rivwebcapi/rivwebcapi/rd_editcart.c @@ -3,7 +3,7 @@ * Implementation of the Edit Cart Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -62,7 +62,6 @@ static void XMLCALL __EditCartElementEnd(void *data, const char *el) { struct xml_data *xml_data=(struct xml_data *)data; struct rd_cart *cart=xml_data->cart; - char hold_datetime[25]; if(strcasecmp(el,"number")==0) { sscanf(xml_data->strbuf,"%u",&cart->cart_number); diff --git a/apis/rivwebcapi/rivwebcapi/rd_import.c b/apis/rivwebcapi/rivwebcapi/rd_import.c index 20f2c36c..591029ce 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_import.c +++ b/apis/rivwebcapi/rivwebcapi/rd_import.c @@ -3,6 +3,7 @@ * Implementation of the Import Cart Rivendell Access Library * * (C) Copyright 2015 Todd Baker + * (C) Copyright 2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -44,7 +45,7 @@ static void XMLCALL __ImportCartElementStart(void *data, const char *el, // xml_data->cartimport=realloc(xml_data->cartimport, sizeof(struct rd_cartimport)); //} - strncpy(xml_data->elem_name,el,256); + strncpy(xml_data->elem_name,el,255); memset(xml_data->strbuf,0,1024); } @@ -103,7 +104,6 @@ int RD_ImportCart(struct rd_cartimport *cartimport[], const char user_agent[], unsigned *numrecs) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; @@ -111,7 +111,6 @@ int RD_ImportCart(struct rd_cartimport *cartimport[], long response_code; struct curl_httppost *first=NULL; struct curl_httppost *last=NULL; - int i; char cart_buffer[50]; char cut_buffer[50]; char channels_buffer[50]; @@ -119,8 +118,6 @@ int RD_ImportCart(struct rd_cartimport *cartimport[], char autotrim_buffer[50]; char use_metadata_buffer[50]; char create_flag[50]; - long userlen = strlen(username); - long passwdlen = strlen(passwd); char errbuf[CURL_ERROR_SIZE]; CURLcode res; char user_agent_string[255]; diff --git a/apis/rivwebcapi/rivwebcapi/rd_listcart.c b/apis/rivwebcapi/rivwebcapi/rd_listcart.c index 5e732a51..96a731f5 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listcart.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listcart.c @@ -3,7 +3,7 @@ * Implementation of the ListCart Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -39,7 +39,6 @@ struct xml_data { static void XMLCALL __ListCartElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"cart")==0) { // Allocate a new cart entry xml_data->carts=realloc(xml_data->carts, sizeof(struct rd_cart)); diff --git a/apis/rivwebcapi/rivwebcapi/rd_listcartcuts.c b/apis/rivwebcapi/rivwebcapi/rd_listcartcuts.c index 208d6b0a..f1e261d5 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listcartcuts.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listcartcuts.c @@ -3,7 +3,7 @@ * Implementation of the ListCartCuts Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -40,7 +40,6 @@ struct xml_data { static void XMLCALL __ListCartCutsElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"cart")==0) { // Allocate a new cart entry xml_data->carts=realloc(xml_data->carts, sizeof(struct rd_cart)); diff --git a/apis/rivwebcapi/rivwebcapi/rd_listcartscuts.c b/apis/rivwebcapi/rivwebcapi/rd_listcartscuts.c index ef5a4a01..a316a6fc 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listcartscuts.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listcartscuts.c @@ -41,7 +41,6 @@ struct xml_data { static void XMLCALL __ListCartsCutsElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"cart")==0) { // Allocate a new cart entry (xml_data->cart_ptr)++; @@ -499,7 +498,6 @@ struct rd_cut *RD_ListCartsCuts_GetCut(struct rd_cart carts[],int cart_rec, void RD_ListCartsCuts_Free(struct rd_cart carts[],int numrecs) { int i; - struct rd_cut *cut=NULL; for(i=0;i - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 20182021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -39,7 +39,6 @@ struct xml_data { static void XMLCALL __ListCutElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"cut")==0) { // Allocate a new cut entry xml_data->cuts=realloc(xml_data->cuts, diff --git a/apis/rivwebcapi/rivwebcapi/rd_listcuts.c b/apis/rivwebcapi/rivwebcapi/rd_listcuts.c index 4066e1ba..930d7eec 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listcuts.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listcuts.c @@ -3,7 +3,7 @@ * Implementation of the LastCuts Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -40,7 +40,6 @@ struct xml_data { static void XMLCALL __ListCutsElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"cut")==0) { // Allocate a new cut entry xml_data->cuts=realloc(xml_data->cuts, diff --git a/apis/rivwebcapi/rivwebcapi/rd_listgroup.c b/apis/rivwebcapi/rivwebcapi/rd_listgroup.c index ca1356c4..fbf616c4 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listgroup.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listgroup.c @@ -3,7 +3,7 @@ * Implementation of the ListGroup Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -39,7 +39,6 @@ struct xml_data { static void XMLCALL __ListGroupElementStart(void *data, const char *el, const char **attr) { - unsigned i; struct xml_data *xml_data=(struct xml_data *)data; if(strcasecmp(el,"group")==0) { // Allocate a new group entry xml_data->group=realloc(xml_data->group, sizeof(struct rd_group)); diff --git a/apis/rivwebcapi/rivwebcapi/rd_listgroups.c b/apis/rivwebcapi/rivwebcapi/rd_listgroups.c index d7995a39..aa92d7b5 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listgroups.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listgroups.c @@ -3,7 +3,7 @@ * Implementation of the ListGroups Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -127,7 +127,6 @@ int RD_ListGroups(struct rd_group *grps[], CURL *curl=NULL; XML_Parser parser; struct xml_data xml_data; - struct rd_group groups[20]; long response_code; char errbuf[CURL_ERROR_SIZE]; CURLcode res; diff --git a/apis/rivwebcapi/rivwebcapi/rd_listlog.c b/apis/rivwebcapi/rivwebcapi/rd_listlog.c index 60a20b70..27ed8bd8 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listlog.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listlog.c @@ -3,7 +3,7 @@ * Implementation of the ListLog Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -421,17 +421,14 @@ int RD_ListLog(struct rd_logline *logline[], const char user_agent[], unsigned *numrecs) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; struct xml_data xml_data; long response_code; - int i; char errbuf[CURL_ERROR_SIZE]; CURLcode res; char user_agent_string[255]; - char cart_buffer[7]; struct curl_httppost *first=NULL; struct curl_httppost *last=NULL; diff --git a/apis/rivwebcapi/rivwebcapi/rd_listlogs.c b/apis/rivwebcapi/rivwebcapi/rd_listlogs.c index 9a9279bc..4b9dbbd2 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listlogs.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listlogs.c @@ -3,7 +3,7 @@ * Implementation of the ListLogs Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -149,7 +149,6 @@ int RD_ListLogs(struct rd_log *logs[], const char user_agent[], unsigned *numrecs) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_listschedcodes.c b/apis/rivwebcapi/rivwebcapi/rd_listschedcodes.c index bd4cb3df..116d31d2 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listschedcodes.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listschedcodes.c @@ -3,7 +3,7 @@ * Implementation of the ListSchedulCodes Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * + * (C) Copyright 2021 Fred Gleason * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. @@ -90,7 +90,6 @@ int RD_ListSchedCodes(struct rd_schedcodes *scodes[], const char user_agent[], unsigned *numrecs) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_listservices.c b/apis/rivwebcapi/rivwebcapi/rd_listservices.c index 50d047ee..b9ec134f 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listservices.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listservices.c @@ -3,7 +3,7 @@ * Implementation of the List Services Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -93,7 +93,6 @@ int RD_ListServices(struct rd_service *services[], const char user_agent[], unsigned *numrecs) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_listsystemsettings.c b/apis/rivwebcapi/rivwebcapi/rd_listsystemsettings.c index 6180d122..95d2293a 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_listsystemsettings.c +++ b/apis/rivwebcapi/rivwebcapi/rd_listsystemsettings.c @@ -3,7 +3,7 @@ * Implementation of the List System Settings Rivendell Access Library * * (C) Copyright 2017 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -99,7 +99,6 @@ int RD_ListSystemSettings(struct rd_system_settings *system_settings[], const char user_agent[], unsigned *numrecs) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_postimage.c b/apis/rivwebcapi/rivwebcapi/rd_postimage.c index dd972138..7f7e6b97 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_postimage.c +++ b/apis/rivwebcapi/rivwebcapi/rd_postimage.c @@ -3,7 +3,7 @@ * Implementation of the Post Image Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __PostImageElementData(void *data,const XML_Char *s, static void XMLCALL __PostImageElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_PostImage( const char hostname[], const unsigned img_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_postpodcast.c b/apis/rivwebcapi/rivwebcapi/rd_postpodcast.c index 0576319a..6f547a8d 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_postpodcast.c +++ b/apis/rivwebcapi/rivwebcapi/rd_postpodcast.c @@ -3,7 +3,7 @@ * Implementation of the Post RSS item audio Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __PostPodcastElementData(void *data,const XML_Char *s, static void XMLCALL __PostPodcastElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_PostPodcast( const char hostname[], const unsigned cast_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_postrss.c b/apis/rivwebcapi/rivwebcapi/rd_postrss.c index be38c507..6fc1437f 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_postrss.c +++ b/apis/rivwebcapi/rivwebcapi/rd_postrss.c @@ -3,7 +3,7 @@ * Implementation of the Post Image Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __PostRssElementData(void *data,const XML_Char *s, static void XMLCALL __PostRssElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_PostRss( const char hostname[], const unsigned feed_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_removecart.c b/apis/rivwebcapi/rivwebcapi/rd_removecart.c index 52d24897..95e57ec5 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_removecart.c +++ b/apis/rivwebcapi/rivwebcapi/rd_removecart.c @@ -3,6 +3,7 @@ * Implementation of the Remove Cart Rivendell Access Library * * (C) Copyright 2015 Todd Baker + * (C) Copyright 2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -51,7 +52,7 @@ static void XMLCALL __RemoveCartElementData(void *data,const XML_Char *s, static void XMLCALL __RemoveCartElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -73,7 +74,6 @@ int RD_RemoveCart( const char hostname[], const unsigned cartnumber, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_removecut.c b/apis/rivwebcapi/rivwebcapi/rd_removecut.c index a05ddabd..bf93f7d9 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_removecut.c +++ b/apis/rivwebcapi/rivwebcapi/rd_removecut.c @@ -3,7 +3,7 @@ * Implementation of the Remove Cut Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __RemoveCutElementData(void *data,const XML_Char *s, static void XMLCALL __RemoveCutElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -75,7 +75,6 @@ int RD_RemoveCut( const char hostname[], const unsigned cutnumber, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_removeimage.c b/apis/rivwebcapi/rivwebcapi/rd_removeimage.c index ff9b56e2..5b9ca8ad 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_removeimage.c +++ b/apis/rivwebcapi/rivwebcapi/rd_removeimage.c @@ -3,7 +3,7 @@ * Implementation of the Remove Image Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __RemoveImageElementData(void *data,const XML_Char *s, static void XMLCALL __RemoveImageElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_RemoveImage( const char hostname[], const unsigned img_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_removepodcast.c b/apis/rivwebcapi/rivwebcapi/rd_removepodcast.c index d7121968..8d1e13e6 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_removepodcast.c +++ b/apis/rivwebcapi/rivwebcapi/rd_removepodcast.c @@ -3,7 +3,7 @@ * Implementation of the Remove RSS item audio Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __RemovePodcastElementData(void *data,const XML_Char *s, static void XMLCALL __RemovePodcastElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_RemovePodcast( const char hostname[], const unsigned cast_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_removerss.c b/apis/rivwebcapi/rivwebcapi/rd_removerss.c index 3fddf62f..b82afd34 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_removerss.c +++ b/apis/rivwebcapi/rivwebcapi/rd_removerss.c @@ -3,7 +3,7 @@ * Implementation of the Remove RSS XML Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __RemoveRssElementData(void *data,const XML_Char *s, static void XMLCALL __RemoveRssElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -74,7 +74,6 @@ int RD_RemoveRss( const char hostname[], const unsigned feed_id, const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; diff --git a/apis/rivwebcapi/rivwebcapi/rd_savepodcast.c b/apis/rivwebcapi/rivwebcapi/rd_savepodcast.c index 46525705..d32bf962 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_savepodcast.c +++ b/apis/rivwebcapi/rivwebcapi/rd_savepodcast.c @@ -3,7 +3,7 @@ * Implementation of the save RSS item audio Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2020 Fred Gleason + * (C) Copyright 2020-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -52,7 +52,7 @@ static void XMLCALL __SavePodcastElementData(void *data,const XML_Char *s, static void XMLCALL __SavePodcastElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; } @@ -76,7 +76,6 @@ int RD_SavePodcast(const char hostname[], const char filename[], const char user_agent[]) { - char post[1500]; char url[1500]; CURL *curl=NULL; XML_Parser parser; @@ -84,10 +83,7 @@ int RD_SavePodcast(const char hostname[], long response_code; struct curl_httppost *first=NULL; struct curl_httppost *last=NULL; - int i; char id_buffer[21]; - long userlen = strlen(username); - long passwdlen = strlen(passwd); char errbuf[CURL_ERROR_SIZE]; CURLcode res; char user_agent_string[255]; diff --git a/apis/rivwebcapi/rivwebcapi/rd_unassignschedcode.c b/apis/rivwebcapi/rivwebcapi/rd_unassignschedcode.c index a5f5bc6a..facaa06b 100644 --- a/apis/rivwebcapi/rivwebcapi/rd_unassignschedcode.c +++ b/apis/rivwebcapi/rivwebcapi/rd_unassignschedcode.c @@ -3,7 +3,7 @@ * Implementation of the UnassignSchedulCode Rivendell Access Library * * (C) Copyright 2015 Todd Baker - * (C) Copyright 2018 Fred Gleason + * (C) Copyright 2018-2021 Fred Gleason * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -54,7 +54,7 @@ static void XMLCALL __UnAssignSchedCodeElementData(void *data,const XML_Char *s, static void XMLCALL __UnAssignSchedCodeElementEnd(void *data, const char *el) { - struct xml_data *xml_data=(struct xml_data *)data; + // struct xml_data *xml_data=(struct xml_data *)data; }