summaryrefslogtreecommitdiff
path: root/getabook.c
diff options
context:
space:
mode:
Diffstat (limited to 'getabook.c')
-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\":{");