diff options
-rw-r--r-- | getgbook.c | 2 | ||||
-rw-r--r-- | util.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -38,7 +38,7 @@ Page *getpagedetail(char *bookid, char *pg, char *cookie) if(!(c = strstr(buf,m))) return NULL; - page = malloc(sizeof(Page)); + page = malloc(sizeof(*page)); strncpy(page->name, pg, STRMAX); page->url[0] = '\0'; page->num = -1; @@ -2,5 +2,5 @@ #define COOKIEMAX 1024 #define HEADERMAX 1024 int dial(char *host, char *port); -int get(char *host, char *path, char *sendcookie, char *savecookie, char **buf); +int get(char *host, char *path, char *sendcookie, char *savecookie, char **buf); int gettofile(char *host, char *url, char *sendcookie, char *savecookie, char *savepath); |