code: drawterm

Download patch

ref: 6fb85848001386a1acf2bc47605b797ce21c48a7
parent: 7211f00b30cf898c5888135ad79acd4886af025f
author: Russ Cox <rsc@swtch.com>
date: Sun Jan 2 13:33:44 EST 2011

cleanup suggested by Geoff Collyer

--- a/kern/win32.c
+++ b/kern/win32.c
@@ -448,7 +448,7 @@
 long
 showfilewrite(char *a, int n)
 {
-	Rune *action, *arg, *cmd, *p;
+	Rune *action, *arg, *cmd;
 	static Rune Lopen[] = { 'o', 'p', 'e', 'n', 0 };
 
 	cmd = runesmprint("%.*s", n, a);
--- a/libsec/tlshand.c
+++ b/libsec/tlshand.c
@@ -1199,7 +1199,7 @@
 
 	switch(m->tag) {
 	default:
-		sysfatal("msgClear: unknown message type: %d\n", m->tag);
+		sysfatal("msgClear: unknown message type: %d", m->tag);
 	case HHelloRequest:
 		break;
 	case HClientHello: