diff options
author | Nick White <git@njw.me.uk> | 2011-09-20 00:44:04 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-09-20 00:44:04 +0100 |
commit | 47a694e3d1c598a1f0d6932493aee15ed4a731aa (patch) | |
tree | a33c67732b1eb2d7a3d218acd7fade24c6330649 /getabook.c | |
parent | b2a763ad9b2c256ec989194afb77aba3cf498a09 (diff) |
Removed unneeded var
Diffstat (limited to 'getabook.c')
-rw-r--r-- | getabook.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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\":{"); |