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/mothra.c | |
parent | fe5ede9792e3b4bbed05c10c534c8050e4208233 (diff) |
mothra: enable compiler warnings and type checking, cleanup
Diffstat (limited to 'sys/src/cmd/mothra/mothra.c')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index ddc696738..0a6407231 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -297,8 +297,6 @@ void main(int argc, char *argv[]){ Event e; enum { Eplumb = 128, Ekick = 256 }; Plumbmsg *pm; - Www *new; - Action *a; char *url; int i; @@ -577,7 +575,7 @@ char *arg(char *s){ } void save(int ifd, char *name){ char buf[NNAME+64]; - int cfd, ofd; + int ofd; if(ifd < 0){ message("save: %s: %r", name); return; @@ -972,7 +970,7 @@ Url* selurl(char *urlname){ * get the file at the given url */ void geturl(char *urlname, int post, int plumb, int map){ - int i, fd, typ, pfd[2]; + int i, fd, typ; char cmd[NNAME]; ulong n; Www *w; @@ -1168,7 +1166,6 @@ void paste(Panel *p){ } void hit3(int button, int item){ char name[NNAME]; - char file[128]; Panel *swap; int fd; USED(button); |