diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-01 14:55:33 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-01 14:55:33 +0200 |
commit | 71c57070c61d58f9ba41a511ed3790201bedead7 (patch) | |
tree | 273fa8b300878dea3ddffb2f49d0b41ecf81b0e2 /sys/src/cmd/mothra/rdhtml.c | |
parent | fe5ede9792e3b4bbed05c10c534c8050e4208233 (diff) |
mothra: enable compiler warnings and type checking, cleanup
Diffstat (limited to 'sys/src/cmd/mothra/rdhtml.c')
-rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index c347701db..12f2a7f3f 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -317,10 +317,8 @@ char *linkify(char *s){ * This doesn't work if removing an entity reference can lengthen the string! * Fortunately, this doesn't happen. */ -void pl_rmentities(Hglob *g, char *s){ +void pl_rmentities(Hglob *, char *s){ char *t, *u, c, svc; - Entity *ep; - Rune r; t=s; do{ c=*s++; @@ -466,7 +464,7 @@ int pl_getcomment(Hglob *g){ ; if(c==EOF) break; - if((c=pl_nextc(g))=='-'){ + if(pl_nextc(g)=='-'){ while((c=pl_nextc(g))=='-') ; if(c==ETAG || c==EOF) @@ -693,7 +691,7 @@ void plrdplain(char *name, int fd, Www *dst){ finish(dst); } void plrdhtml(char *name, int fd, Www *dst){ - int t, tagerr; + int tagerr; Stack *sp; char buf[20]; char *str; |