cleanups spotted by irix cc

This commit is contained in:
Russ Cox
2005-12-29 23:15:58 +00:00
parent 3c84c725ef
commit 21b830b1ac
8 changed files with 22 additions and 42 deletions

View File

@ -27,10 +27,9 @@ extern Memimage *gscreen;
static Rectangle flushr;
static Rectangle window;
static Point curpos;
static int h, w;
static int h;
static void termscreenputs(char*, int);
Point ZP;
static void
screenflush(void)
@ -51,7 +50,7 @@ addflush(Rectangle r)
static void
screenwin(void)
{
Point p, q;
Point p;
char *greet;
Memimage *grey;
@ -60,7 +59,6 @@ screenwin(void)
conscol = memblack;
memfillcolor(gscreen, 0x444488FF);
w = memdefont->info[' '].width;
h = memdefont->height;
window.min = addpt(gscreen->r.min, Pt(20,20));
@ -83,7 +81,6 @@ screenwin(void)
greet = " Plan 9 Console ";
p = addpt(window.min, Pt(10, 0));
q = memsubfontwidth(memdefont, greet);
memimagestring(gscreen, p, conscol, ZP, memdefont, greet);
window.min.y += h+6;
curpos = window.min;