diff options
| author | Nick White <git@njw.me.uk> | 2012-04-20 11:50:50 +0100 | 
|---|---|---|
| committer | Nick White <git@njw.me.uk> | 2012-04-20 11:50:50 +0100 | 
| commit | 7e55f7ae9f1e3d86c970a7bf9b48d4d567182caf (patch) | |
| tree | b9b1b6eeffdf0fee7e8d9149d448d083d52836ee | |
| parent | 7739ec5aaee54b44ee9e570c3f4fbc11e0fd3014 (diff) | |
Fix incorrect function usage
| -rw-r--r-- | getabook.c | 2 | ||||
| -rw-r--r-- | getbnbook.c | 2 | ||||
| -rw-r--r-- | getgbook.c | 2 | 
3 files changed, 3 insertions, 3 deletions
@@ -163,7 +163,7 @@ int main(int argc, char *argv[])  	bookdir = argv[argc-1];  	pages = malloc(sizeof(*pages) * MAXPAGES); -	if(getpagelist(bookid, pages)) { +	if(getpagelist()) {  		fprintf(stderr, "Could not find any pages for %s\n", bookid);  		return 1;  	} diff --git a/getbnbook.c b/getbnbook.c index d228069..720605d 100644 --- a/getbnbook.c +++ b/getbnbook.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[])  	if(get("www.barnesandnoble.com", "/", NULL, cookies, &tmp))  		free(tmp); -	if(getpagelist(bookid, pages)) { +	if(getpagelist()) {  		fprintf(stderr, "Could not find any pages for %s\n", bookid);  		return 1;  	} @@ -192,7 +192,7 @@ int main(int argc, char *argv[])  	bookdir = argv[argc-1];  	pages = malloc(sizeof(*pages) * MAXPAGES); -	if(getpagelist(bookid, pages)) { +	if(getpagelist()) {  		fprintf(stderr, "Could not find any pages for %s\n", bookid);  		return 1;  	}  | 
