Trivial changes: whitespace and modes.

Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
Dan Cross 2020-01-10 14:44:21 +00:00
parent 77a0a5b519
commit fa325e9b42
1021 changed files with 5688 additions and 6193 deletions

View file

@ -17,7 +17,7 @@ static int
PUTSTRING(uchar *p, char *s)
{
int n;
if(s == nil)
s = "";
n = strlen(s);
@ -30,14 +30,14 @@ static int
GETSTRING(uchar *p, char **s)
{
int n;
GET(p, n);
memmove(p, p+4, n);
*s = (char*)p;
p[n] = 0;
return n+4;
}
uint
sizeW2M(Wsysmsg *m)
{
@ -96,7 +96,7 @@ uint
convW2M(Wsysmsg *m, uchar *p, uint n)
{
int nn;
nn = sizeW2M(m);
if(n < nn || nn == 0 || n < 6)
return 0;
@ -188,7 +188,7 @@ convW2M(Wsysmsg *m, uchar *p, uint n)
PUT(p+14, m->rect.max.x);
PUT(p+18, m->rect.max.y);
break;
}
}
return nn;
}
@ -196,7 +196,7 @@ uint
convM2W(uchar *p, uint n, Wsysmsg *m)
{
int nn;
if(n < 6)
return 0;
GET(p, nn);
@ -288,7 +288,7 @@ convM2W(uchar *p, uint n, Wsysmsg *m)
GET(p+14, m->rect.max.x);
GET(p+18, m->rect.max.y);
break;
}
}
return nn;
}
@ -313,7 +313,7 @@ int
drawfcallfmt(Fmt *fmt)
{
Wsysmsg *m;
m = va_arg(fmt->args, Wsysmsg*);
fmtprint(fmt, "tag=%d ", m->tag);
switch(m->type){
@ -325,7 +325,7 @@ drawfcallfmt(Fmt *fmt)
return fmtprint(fmt, "Trdmouse");
case Rrdmouse:
return fmtprint(fmt, "Rrdmouse x=%d y=%d buttons=%d msec=%d resized=%d",
m->mouse.xy.x, m->mouse.xy.y,
m->mouse.xy.x, m->mouse.xy.y,
m->mouse.buttons, m->mouse.msec, m->resized);
case Tbouncemouse:
return fmtprint(fmt, "Tbouncemouse x=%d y=%d buttons=%d",