summaryrefslogtreecommitdiff
path: root/getgbook.c
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-08-19 00:50:30 +0100
committerNick White <git@njw.me.uk>2011-08-19 00:50:30 +0100
commit12c8ed14117a68358f4b680c1fe1f08d61970fec (patch)
treeabb17e6175297f9295bf4542edb1b5dd80fc361e /getgbook.c
parent496e3d7171044a381b91a9a077e7ecc53cd19f97 (diff)
Simplify a teeny bit
Diffstat (limited to 'getgbook.c')
-rw-r--r--getgbook.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/getgbook.c b/getgbook.c
index 29f7a19..d685279 100644
--- a/getgbook.c
+++ b/getgbook.c
@@ -48,9 +48,8 @@ int getpagelist(char *bookid, Page **pages)
for(;*s; s++) {
if(*s == '}')
break;
- if(!strncmp(s, "\"order\"", 7)) {
+ if(!strncmp(s, "\"order\"", 7))
sscanf(s+8, "%d,", &(p->num));
- }
}
p=pages[++i];
}