From 47a694e3d1c598a1f0d6932493aee15ed4a731aa Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 20 Sep 2011 00:44:04 +0100 Subject: Removed unneeded var --- getabook.c | 3 +-- 1 file changed, 1 insertion(+), 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\":{"); -- cgit v1.2.3