summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-09-20 00:44:04 +0100
committerNick White <git@njw.me.uk>2011-09-20 00:44:04 +0100
commit47a694e3d1c598a1f0d6932493aee15ed4a731aa (patch)
treea33c67732b1eb2d7a3d218acd7fade24c6330649
parentb2a763ad9b2c256ec989194afb77aba3cf498a09 (diff)
Removed unneeded var
-rw-r--r--getabook.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/getabook.c b/getabook.c
index 11297ed..dd7eec7 100644
--- a/getabook.c
+++ b/getabook.c
@@ -55,12 +55,11 @@ int getpagelist()
int getpageurls(int pagenum) {
char url[URLMAX], m[STRMAX];
char *c, *s, *buf = NULL;
- size_t l;
int i;
snprintf(url, URLMAX, "/gp/search-inside/service-data?method=goToPage&asin=%s&page=%d", bookid, pagenum);
- if(!(l = get("www.amazon.com", url, NULL, NULL, &buf)))
+ if(!get("www.amazon.com", url, NULL, NULL, &buf))
return 1;
s = strstr(buf, "\"jumboImageUrls\":{") + strlen("\"jumboImageUrls\":{");