shithub: Nail

Download patch

ref: dbb405f80bf9f5ae44afdd5eafa59e8935875246
parent: d2ddeb025f374eef4234007c19bd5f7bcc2d8118
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Nov 4 18:23:30 EST 2020

remove debug junk

--- a/mbox.c
+++ b/mbox.c
@@ -5,7 +5,6 @@
 #include <plumb.h>
 #include <ctype.h>
 #include <regexp.h>
-#include <pool.h>
 
 #include "mail.h"
 
@@ -370,8 +369,6 @@
 	addchild(p, m);
 	return m;
 error:
-	fprint(2, "load failed: %r\n");
-	abort();
 	mesgfree(m);
 	return nil;
 }
@@ -683,7 +680,6 @@
 
 	if(ev->action != 'M')
 		return;
-	poolcheck(mainmem);
 	print("event %c %s\n", ev->type, ev->text);
 	switch(ev->type){
 	case 'l':
@@ -790,8 +786,6 @@
 	if(argc == 1)
 		mailbox = argv[0];
 	mbload();
-	poolcheck(mainmem);
-	mainmem->flags |= POOL_PARANOIA;
 	proccreate(plumbsee, nil, Stack);
 	proccreate(plumbshow, nil, Stack);
 	threadsetname("mbox %s", mbox.path);
--- a/win.c
+++ b/win.c
@@ -162,7 +162,7 @@
 	w->ctl = -1;
 	w->data = -1;
 	w->addr = -1;
-	w->evetn = nil;
+	w->event = nil;
 	w->io = nil;
 }