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

@ -629,4 +629,3 @@ Clinelen(Cdimg *cd)
{
return Blinelen(&cd->brd);
}

View file

@ -219,4 +219,3 @@ dsort(Direc *d, int (*cmp)(const void*, const void*))
for(i=0; i<n; i++)
dsort(&d->child[i], cmp);
}

View file

@ -399,4 +399,3 @@ addprotofile(char *new, char *old, Dir *d, void *a)
free(name);
}

View file

@ -135,4 +135,3 @@ Cputjolietsvd(Cdimg *cd, Cdinfo info)
Cputc(cd, 1); /* file structure version */
Cpadblock(cd);
}

View file

@ -36,4 +36,3 @@ runecmp(Rune *s, Rune *t)
s++, t++;
return *s - *t;
}

View file

@ -610,4 +610,3 @@ nlink(Direc *d) /* Trump up the nlink field for POSIX compliance */
return n;
}

View file

@ -167,4 +167,3 @@ clean(Xfile *f)
f->qid = (Qid){0,0,0};
return f;
}

View file

@ -600,4 +600,3 @@ xls(int argc, char **argv)
}
threadexitsall(err);
}

View file

@ -70,4 +70,3 @@ errstr2errno(void)
return errortab[i].err;
return ERANGE; /* who knows - be blatantly wrong */
}

View file

@ -664,4 +664,3 @@ textproc(void *arg)
break2:
close(fd);
}

View file

@ -84,4 +84,3 @@ getintr(int fd)
return 0x7F;
return ttmode.c_cc[VINTR];
}

View file

@ -111,4 +111,3 @@ getintr(int fd)
return 0x7F;
return ttmode.c_cc[VINTR];
}

View file

@ -39,4 +39,3 @@ int intrc(void);
void rioputsnarf(void);
void riogetsnarf(void);

View file

@ -60,4 +60,3 @@ p9realloc(void *v, ulong n)
print("p9realloc %p %lud => %p; pc %lux\n", v, n, vv, getcallerpc(&v));
return vv;
}

View file

@ -146,4 +146,3 @@ runetobyte(Rune *r, int n, int *ip)
*ip = m;
return s;
}

View file

@ -245,4 +245,3 @@ getstatus(int pid)
{
return "unknown";
}

View file

@ -92,4 +92,3 @@ int Bfmt(Fmt*);
#ifdef VARARGCK
#pragma varargck type "B" char*
#endif

View file

@ -183,4 +183,3 @@ ds2acid(Dwarf *d, DwarfSym *s, Biobuf *b, char *fn)
break;
}
}

View file

@ -75,4 +75,3 @@ main(int argc, char **argv)
Bterm(&b);
exits(0);
}

View file

@ -1169,4 +1169,3 @@ timefmt(Fmt *f)
return fmtprint(f, "%04d/%02d/%02d %02d:%02d:%02d",
tm->year+1900, tm->mon+1, tm->mday, tm->hour, tm->min, tm->sec);
}

View file

@ -178,4 +178,3 @@ extern int shortmenu;
extern CFsys *mailfs;
extern CFsys *acmefs;

View file

@ -641,4 +641,3 @@ mainctl(void *v)
}
}
}

View file

@ -104,4 +104,3 @@ ctlprint(CFid *fd, char *fmt, ...)
if(n <= 0)
error("control file write error: %r");
}

View file

@ -350,4 +350,3 @@ Proto cram = {
apopcheck,
nil
};

View file

@ -424,5 +424,3 @@ Proto mschap = {
"user? !password?",
chapcheck
};

View file

@ -268,4 +268,3 @@ convbadkey(Conv *c, Key *k, char *msg, Attr *a)
return -1;
return 0;
}

View file

@ -147,4 +147,3 @@ Proto dsa = {
dsacheck,
dsaclose
};

View file

@ -538,4 +538,3 @@ fsinit0(void)
fs.destroyfid = fssendclunk;
fs.start = fsstart;
}

View file

@ -118,4 +118,3 @@ flog(char *fmt, ...)
lbvappend(&logbuf, fmt, arg);
va_end(arg);
}

View file

@ -269,4 +269,3 @@ Proto p9any = {
"p9any",
p9anyroles
};

View file

@ -356,4 +356,3 @@ Proto p9sk2 = {
"p9sk2",
p9sk2roles
};

View file

@ -200,4 +200,3 @@ mkasn1(uchar *asn1, DigestAlg *alg, uchar *d, uint dlen)
asn1[1] = p - (asn1+2); /* end of outer sequence */
return p-asn1;
}

View file

@ -341,4 +341,3 @@ convAI2M(uchar *p, int n, char *cuid, char *suid, char *cap, char *hex)
werrstr("authinfo too big");
return p;
}

View file

@ -659,4 +659,3 @@ Out:
free(sta);
return rv;
}

View file

@ -7,4 +7,3 @@
#include <thread.h>
#include <fcall.h>
#include <9p.h>

View file

@ -50,5 +50,3 @@ estrappend(char *s, char *fmt, ...)
free(t);
return s;
}

View file

@ -162,4 +162,3 @@ xioasgetticket(int fd, char *trbuf, char *tbuf)
n = 0;
return n;
}

View file

@ -30,5 +30,3 @@ main(int argc, char **argv)
write(1, buf, n);
print("\n");
}

View file

@ -211,4 +211,3 @@ readstr(SConn *conn, char *s)
}
return n;
}

View file

@ -23,4 +23,3 @@ extern int readstr(SConn*, char*); /* call with buf of size Maxmsg+1 */
extern void *emalloc(ulong); /* dies on failure; clears memory */
extern void *erealloc(void *, ulong);
extern char *estrdup(char *);

View file

@ -84,4 +84,3 @@ dirls(char *path)
free(dirbuf);
return list;
}

View file

@ -341,4 +341,3 @@ done:
mpfree(H);
return rc;
}

View file

@ -133,4 +133,3 @@ freePW(PW *pw)
mpfree(pw->Hi);
free(pw);
}

View file

@ -578,4 +578,3 @@ main(int argc, char **argv)
exits("");
return 0;
}

View file

@ -28,4 +28,3 @@ char *PAK_Hi(char *, char *, mpint *, mpint *);
#define LOG "secstore"
extern char *SECSTORE_DIR;

View file

@ -417,4 +417,3 @@ main(int argc, char **argv)
}
}
}

View file

@ -241,4 +241,3 @@ userinput(char *buf, int blen)
exits("input too large");
}
}

View file

@ -1064,4 +1064,3 @@ erealloc(void *v, int n)
}
return v;
}

View file

@ -7,4 +7,3 @@ void (*statfn[])(int) =
{
0
};

View file

@ -284,4 +284,3 @@ xswap(int first)
Bprint(&bout, "swap =%lld %lld\n", s.ksw_used*(vlong)pgsize, s.ksw_total*(vlong)pgsize);
}

View file

@ -7,4 +7,3 @@ void (*statfn[])(int) =
{
0
};

View file

@ -7,4 +7,3 @@ void (*statfn[])(int) =
{
0
};

View file

@ -120,4 +120,3 @@ tokens(int i)
}
ntok = tokenize(line[i], tok, nelem(tok));
}

View file

@ -182,4 +182,3 @@ extern int pairstack[], paircnt;
#define freeable(p) ( ((p)->tval & (STR|DONTFREE)) == STR )
#include "proto.h"

View file

@ -567,4 +567,3 @@ void unputstr(char *s) /* put a string back on input */
for (i = strlen(s)-1; i >= 0; i--)
unput(s[i]);
}

View file

@ -715,4 +715,3 @@ int is_number(char *s)
else
return 0;
}

View file

@ -195,4 +195,3 @@ char *cursource(void) /* current source file name */
else
return NULL;
}

View file

@ -166,4 +166,3 @@ int main(int argc, char *argv[])
printf("}\n");
return 0;
}

View file

@ -269,4 +269,3 @@ Node *itonp(int i) /* and vice versa */
{
return (Node *) (long) i;
}

View file

@ -177,4 +177,3 @@ extern Cell *gsub(Node **, int);
extern FILE *popen(const char *, const char *);
extern int pclose(FILE *);

View file

@ -322,4 +322,3 @@ overflow(void)
{
FATAL("%s", "regular expression too big");
}

View file

@ -1914,4 +1914,3 @@ void backsub(char **pb_ptr, char **sptr_ptr) /* handle \\& variations */
*pb_ptr = pb;
*sptr_ptr = sptr;
}

View file

@ -432,4 +432,3 @@ char *qstring(char *s, int delim) /* collect string up to next delim */
*bp++ = 0;
return buf;
}

View file

@ -138,4 +138,3 @@ int BZ_API(BZ2_bzBuffToBuffCompress)
BZ2_bzCompressEnd ( &strm );
return ret;
}

View file

@ -139,5 +139,3 @@ int BZ_API(BZ2_bzBuffToBuffDecompress)
BZ2_bzDecompressEnd ( &strm );
return ret;
}

View file

@ -138,4 +138,3 @@ int BZ_API(BZ2_bzBuffToBuffCompress)
BZ2_bzCompressEnd ( &strm );
return ret;
}

View file

@ -462,4 +462,3 @@ int BZ_API(BZ2_bzCompressEnd) ( bz_stream *strm )
return BZ_OK;
}

View file

@ -458,4 +458,3 @@ int BZ_API(BZ2_bzDecompressEnd) ( bz_stream *strm )
return BZ_OK;
}

View file

@ -97,4 +97,3 @@ Bool bz_feof ( FILE* f )
ungetc ( c, f );
return False;
}

View file

@ -187,4 +187,3 @@ BZ_EXTERN void BZ_API(BZ2_bzWriteClose64) (
unsigned int* nbytes_out_lo32,
unsigned int* nbytes_out_hi32
);

View file

@ -66,4 +66,3 @@ typedef
bzFile;
extern Bool bz_feof( FILE* );

View file

@ -95,4 +95,3 @@ Bool bz_feof ( FILE* f )
ungetc ( c, f );
return False;
}

View file

@ -96,4 +96,3 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
{
return BZ_VERSION;
}

View file

@ -250,4 +250,3 @@ void BZ_API(BZ2_bzWriteClose64)
BZ2_bzCompressEnd ( &(bzf->strm) );
free ( bzf );
}

View file

@ -85,4 +85,3 @@ typedef unsigned short UInt16;
Only here to avoid probs with 64-bit platforms.
--*/
typedef int IntNative;

View file

@ -5,4 +5,3 @@
#include <math.h>
#include <errno.h>
#include <ctype.h>

View file

@ -33,4 +33,3 @@ main(int argc, char *argv[])
}
exits(0);
}

View file

@ -1633,5 +1633,3 @@ error:
qunlock(&sdraw.lk);
return -1;
}

View file

@ -125,4 +125,3 @@ fprint(2, "%s...\n", p);
}
exits(0);
}

View file

@ -315,5 +315,3 @@ kfmt(Fmt *f)
return fmtprint(f, "<%s>", xkey[i].s);
return fmtprint(f, "<%c>", c);
}

View file

@ -56,4 +56,3 @@ unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
return _unloadmemimage(i, r, data, ndata);
}

View file

@ -107,4 +107,3 @@ runxevent(XEvent *xev)
break;
}
}

View file

@ -121,4 +121,3 @@ freememimage(Memimage *m)
}
_freememimage(m);
}

View file

@ -15,4 +15,3 @@ cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
_xputxdata(i, r);
return n;
}

View file

@ -147,4 +147,3 @@ xdraw(Memdrawparam *par)
*/
return 0;
}

View file

@ -52,5 +52,3 @@ _xfillcolor(Memimage *m, Rectangle r, u32int v)
p = subpt(r.min, m->r.min);
XFillRectangle(_x.display, xm->pixmap, gc, p.x, p.y, Dx(r), Dy(r));
}

View file

@ -103,6 +103,3 @@ _xdirtyxdata(Memimage *m, Rectangle r)
xm->dirty = 1;
addrect(&xm->dirtyr, r);
}

View file

@ -15,4 +15,3 @@ loadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
_xputxdata(i, r);
return n;
}

View file

@ -12,5 +12,3 @@ pixelbits(Memimage *m, Point p)
_xgetxdata(m, Rect(p.x, p.y, p.x+1, p.y+1));
return _pixelbits(m, p);
}

View file

@ -635,4 +635,3 @@ runxevent(XEvent *xev)
break;
}
}

View file

@ -12,4 +12,3 @@ unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
_xgetxdata(i, r);
return _unloadmemimage(i, r, data, ndata);
}

View file

@ -43,4 +43,3 @@ _xmovewindow(Rectangle r)
XConfigureWindow(_x.display, _x.drawable, value_mask, &e);
XFlush(_x.display);
}

View file

@ -337,4 +337,3 @@ getwidth(void)
}else
linewidth = ws.ws_col;
}

View file

@ -928,4 +928,3 @@ initmach(Machine *m, char *name)
*q = 0;
return 1;
}

View file

@ -231,4 +231,3 @@ threadmain(int argc, char **argv)
}
proccreate(updateproc, nil, STACK);
}

View file

@ -232,4 +232,3 @@ resizethread(void *v)
while(recv(mousectl->resizec, &x) >= 0)
eresized(1);
}

View file

@ -162,4 +162,3 @@ wcstombs(char *s, const wchar_t *pwcs, size_t n)
}
return p-s;
}

View file

@ -39,4 +39,3 @@ estrdup(char *s)
}
return t;
}

View file

@ -600,4 +600,3 @@ dirpackage(uchar *buf, long ts, Dir **d)
return nn;
}

View file

@ -417,4 +417,3 @@ bwatchUnlock(Block *b)
}else
w->b[i] = w->b[--w->nb];
}

Some files were not shown because too many files have changed in this diff Show more