diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2012-05-31 10:58:43 -0500 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2012-05-31 10:58:43 -0500 |
commit | 5be42a30d7beb23a1cbeec760ce436570a6280c1 (patch) | |
tree | 373f956f25a591a1a72359349a8c0f085d05a407 /sys/src/cmd/mothra/mothra.c | |
parent | 4bf2b98450274007c1bd0154e6704ba6f46265ca (diff) |
mothra: remove log file stubs
Diffstat (limited to 'sys/src/cmd/mothra/mothra.c')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index b44831d8f..e49e93809 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -11,7 +11,8 @@ #include <panel.h> #include "mothra.h" #include "rtext.h" -int verbose=0; /* -v flag causes html errors to appear in error log */ +int debug=0; /* -d flag causes debug messages to appear in mothra.err */ +int verbose=0; /* -v flag causes html errors to appear in mothra.err */ int defdisplay=1; /* is the default (initial) display visible? */ Panel *root; /* the whole display */ Panel *alt; /* the alternate display */ @@ -74,7 +75,6 @@ Cursor mothcurs={ Www *current=0; Url *selection=0; -int logfile; int mothmode; int kickpipe[2]; @@ -252,7 +252,7 @@ void main(int argc, char *argv[]){ quotefmtinstall(); ARGBEGIN{ - case 'd': debug++; break; + case 'd': debug=1; break; case 'v': verbose=1; break; case 'm': if(mtpt = ARGF()) @@ -288,7 +288,6 @@ void main(int argc, char *argv[]){ dup(errfile, 2); close(errfile); } - logfile=mkmfile("mothra.log", 0666|DMAPPEND); if(initdraw(0, 0, mothra) < 0) sysfatal("initdraw: %r"); display->locking = 1; @@ -320,7 +319,6 @@ void main(int argc, char *argv[]){ if(url && url[0]) geturl(url, -1, 1, 0); - if(logfile==-1) message("Can't open log file"); mouse.buttons=0; for(;;){ if(mouse.buttons==0 && current){ |