summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c6
-rw-r--r--icclient/client.h4
-rw-r--r--icclient/product.h2
-rw-r--r--product.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/client.c b/client.c
index 94dacb3..fa59587 100644
--- a/client.c
+++ b/client.c
@@ -32,12 +32,12 @@ bool icclient_init(const char *url, const char *certificate)
return (bool)curl;
}
-void icclient_results(const char *prodgroup,
+void icclient_results(const char *prod_group,
size_t (*handler)(void *, size_t, size_t, void *),
struct icclient_catalog **catalogptr)
{
- char nonspaced[strlen(prodgroup) + 1];
- strcpy(nonspaced, prodgroup);
+ char nonspaced[strlen(prod_group) + 1];
+ strcpy(nonspaced, prod_group);
char *space = NULL;
while ((space = strchr(nonspaced, ' ')))
*space = '-';
diff --git a/icclient/client.h b/icclient/client.h
index 60c60d4..02e0bfa 100644
--- a/icclient/client.h
+++ b/icclient/client.h
@@ -18,11 +18,11 @@ extern "C" {
/*!
* \brief For fetching data about products that belong a specific group.
- * \param prodgroup The name of the product group.
+ * \param prod_group The name of the product group.
* \param handler A pointer to a cURL write function callback.
* \param catalogptr A pointer to pointer to the catalog to store the data.
*/
- void icclient_results(const char *prodgroup,
+ void icclient_results(const char *prod_group,
size_t (*handler)(void *, size_t, size_t, void *),
struct icclient_catalog **catalogptr);
diff --git a/icclient/product.h b/icclient/product.h
index 0affebc..c3e91bd 100644
--- a/icclient/product.h
+++ b/icclient/product.h
@@ -13,7 +13,7 @@ struct icclient_product {
char *thumb;
char *image;
double price;
- char *prodgroup;
+ char *prod_group;
double weight;
char *author;
struct icclient_product_crosssell *crosssell;
diff --git a/product.c b/product.c
index 39a4e59..fcb16be 100644
--- a/product.c
+++ b/product.c
@@ -9,7 +9,7 @@ void icclient_product_init(struct icclient_product *product)
product->thumb = NULL;
product->image = NULL;
product->price = .0;
- product->prodgroup = NULL;
+ product->prod_group = NULL;
product->weight = .0;
product->author = NULL;
product->crosssell = NULL;
@@ -22,8 +22,8 @@ void icclient_product_free(struct icclient_product *product)
free(product->crosssell->skus[i]);
if (product->author)
free(product->author);
- if (product->prodgroup)
- free(product->prodgroup);
+ if (product->prod_group)
+ free(product->prod_group);
if (product->image)
free(product->image);
if (product->thumb)