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:
parent
77a0a5b519
commit
fa325e9b42
1021 changed files with 5688 additions and 6193 deletions
|
|
@ -629,4 +629,3 @@ Clinelen(Cdimg *cd)
|
|||
{
|
||||
return Blinelen(&cd->brd);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -219,4 +219,3 @@ dsort(Direc *d, int (*cmp)(const void*, const void*))
|
|||
for(i=0; i<n; i++)
|
||||
dsort(&d->child[i], cmp);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -399,4 +399,3 @@ addprotofile(char *new, char *old, Dir *d, void *a)
|
|||
free(name);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -135,4 +135,3 @@ Cputjolietsvd(Cdimg *cd, Cdinfo info)
|
|||
Cputc(cd, 1); /* file structure version */
|
||||
Cpadblock(cd);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,4 +36,3 @@ runecmp(Rune *s, Rune *t)
|
|||
s++, t++;
|
||||
return *s - *t;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -610,4 +610,3 @@ nlink(Direc *d) /* Trump up the nlink field for POSIX compliance */
|
|||
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -167,4 +167,3 @@ clean(Xfile *f)
|
|||
f->qid = (Qid){0,0,0};
|
||||
return f;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -600,4 +600,3 @@ xls(int argc, char **argv)
|
|||
}
|
||||
threadexitsall(err);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,4 +70,3 @@ errstr2errno(void)
|
|||
return errortab[i].err;
|
||||
return ERANGE; /* who knows - be blatantly wrong */
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -664,4 +664,3 @@ textproc(void *arg)
|
|||
break2:
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,4 +84,3 @@ getintr(int fd)
|
|||
return 0x7F;
|
||||
return ttmode.c_cc[VINTR];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -111,4 +111,3 @@ getintr(int fd)
|
|||
return 0x7F;
|
||||
return ttmode.c_cc[VINTR];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,4 +39,3 @@ int intrc(void);
|
|||
|
||||
void rioputsnarf(void);
|
||||
void riogetsnarf(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,4 +60,3 @@ p9realloc(void *v, ulong n)
|
|||
print("p9realloc %p %lud => %p; pc %lux\n", v, n, vv, getcallerpc(&v));
|
||||
return vv;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,4 +146,3 @@ runetobyte(Rune *r, int n, int *ip)
|
|||
*ip = m;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -245,4 +245,3 @@ getstatus(int pid)
|
|||
{
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,4 +92,3 @@ int Bfmt(Fmt*);
|
|||
#ifdef VARARGCK
|
||||
#pragma varargck type "B" char*
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -183,4 +183,3 @@ ds2acid(Dwarf *d, DwarfSym *s, Biobuf *b, char *fn)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,4 +75,3 @@ main(int argc, char **argv)
|
|||
Bterm(&b);
|
||||
exits(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -178,4 +178,3 @@ extern int shortmenu;
|
|||
|
||||
extern CFsys *mailfs;
|
||||
extern CFsys *acmefs;
|
||||
|
||||
|
|
|
|||
|
|
@ -641,4 +641,3 @@ mainctl(void *v)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -104,4 +104,3 @@ ctlprint(CFid *fd, char *fmt, ...)
|
|||
if(n <= 0)
|
||||
error("control file write error: %r");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -350,4 +350,3 @@ Proto cram = {
|
|||
apopcheck,
|
||||
nil
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -424,5 +424,3 @@ Proto mschap = {
|
|||
"user? !password?",
|
||||
chapcheck
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -268,4 +268,3 @@ convbadkey(Conv *c, Key *k, char *msg, Attr *a)
|
|||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,4 +147,3 @@ Proto dsa = {
|
|||
dsacheck,
|
||||
dsaclose
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -538,4 +538,3 @@ fsinit0(void)
|
|||
fs.destroyfid = fssendclunk;
|
||||
fs.start = fsstart;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -118,4 +118,3 @@ flog(char *fmt, ...)
|
|||
lbvappend(&logbuf, fmt, arg);
|
||||
va_end(arg);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -269,4 +269,3 @@ Proto p9any = {
|
|||
"p9any",
|
||||
p9anyroles
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -356,4 +356,3 @@ Proto p9sk2 = {
|
|||
"p9sk2",
|
||||
p9sk2roles
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -341,4 +341,3 @@ convAI2M(uchar *p, int n, char *cuid, char *suid, char *cap, char *hex)
|
|||
werrstr("authinfo too big");
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -659,4 +659,3 @@ Out:
|
|||
free(sta);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@
|
|||
#include <thread.h>
|
||||
#include <fcall.h>
|
||||
#include <9p.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -50,5 +50,3 @@ estrappend(char *s, char *fmt, ...)
|
|||
free(t);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -162,4 +162,3 @@ xioasgetticket(int fd, char *trbuf, char *tbuf)
|
|||
n = 0;
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,5 +30,3 @@ main(int argc, char **argv)
|
|||
write(1, buf, n);
|
||||
print("\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -211,4 +211,3 @@ readstr(SConn *conn, char *s)
|
|||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 *);
|
||||
|
||||
|
|
|
|||
|
|
@ -84,4 +84,3 @@ dirls(char *path)
|
|||
free(dirbuf);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -341,4 +341,3 @@ done:
|
|||
mpfree(H);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -133,4 +133,3 @@ freePW(PW *pw)
|
|||
mpfree(pw->Hi);
|
||||
free(pw);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -578,4 +578,3 @@ main(int argc, char **argv)
|
|||
exits("");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,4 +28,3 @@ char *PAK_Hi(char *, char *, mpint *, mpint *);
|
|||
#define LOG "secstore"
|
||||
|
||||
extern char *SECSTORE_DIR;
|
||||
|
||||
|
|
|
|||
|
|
@ -417,4 +417,3 @@ main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -241,4 +241,3 @@ userinput(char *buf, int blen)
|
|||
exits("input too large");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1064,4 +1064,3 @@ erealloc(void *v, int n)
|
|||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@ void (*statfn[])(int) =
|
|||
{
|
||||
0
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -284,4 +284,3 @@ xswap(int first)
|
|||
|
||||
Bprint(&bout, "swap =%lld %lld\n", s.ksw_used*(vlong)pgsize, s.ksw_total*(vlong)pgsize);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@ void (*statfn[])(int) =
|
|||
{
|
||||
0
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@ void (*statfn[])(int) =
|
|||
{
|
||||
0
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -120,4 +120,3 @@ tokens(int i)
|
|||
}
|
||||
ntok = tokenize(line[i], tok, nelem(tok));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -182,4 +182,3 @@ extern int pairstack[], paircnt;
|
|||
#define freeable(p) ( ((p)->tval & (STR|DONTFREE)) == STR )
|
||||
|
||||
#include "proto.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -715,4 +715,3 @@ int is_number(char *s)
|
|||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,4 +195,3 @@ char *cursource(void) /* current source file name */
|
|||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -166,4 +166,3 @@ int main(int argc, char *argv[])
|
|||
printf("}\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -269,4 +269,3 @@ Node *itonp(int i) /* and vice versa */
|
|||
{
|
||||
return (Node *) (long) i;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -177,4 +177,3 @@ extern Cell *gsub(Node **, int);
|
|||
|
||||
extern FILE *popen(const char *, const char *);
|
||||
extern int pclose(FILE *);
|
||||
|
||||
|
|
|
|||
|
|
@ -322,4 +322,3 @@ overflow(void)
|
|||
{
|
||||
FATAL("%s", "regular expression too big");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1914,4 +1914,3 @@ void backsub(char **pb_ptr, char **sptr_ptr) /* handle \\& variations */
|
|||
*pb_ptr = pb;
|
||||
*sptr_ptr = sptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -432,4 +432,3 @@ char *qstring(char *s, int delim) /* collect string up to next delim */
|
|||
*bp++ = 0;
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -138,4 +138,3 @@ int BZ_API(BZ2_bzBuffToBuffCompress)
|
|||
BZ2_bzCompressEnd ( &strm );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -139,5 +139,3 @@ int BZ_API(BZ2_bzBuffToBuffDecompress)
|
|||
BZ2_bzDecompressEnd ( &strm );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -138,4 +138,3 @@ int BZ_API(BZ2_bzBuffToBuffCompress)
|
|||
BZ2_bzCompressEnd ( &strm );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -462,4 +462,3 @@ int BZ_API(BZ2_bzCompressEnd) ( bz_stream *strm )
|
|||
|
||||
return BZ_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -458,4 +458,3 @@ int BZ_API(BZ2_bzDecompressEnd) ( bz_stream *strm )
|
|||
|
||||
return BZ_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,4 +97,3 @@ Bool bz_feof ( FILE* f )
|
|||
ungetc ( c, f );
|
||||
return False;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -187,4 +187,3 @@ BZ_EXTERN void BZ_API(BZ2_bzWriteClose64) (
|
|||
unsigned int* nbytes_out_lo32,
|
||||
unsigned int* nbytes_out_hi32
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -66,4 +66,3 @@ typedef
|
|||
bzFile;
|
||||
|
||||
extern Bool bz_feof( FILE* );
|
||||
|
||||
|
|
|
|||
|
|
@ -95,4 +95,3 @@ Bool bz_feof ( FILE* f )
|
|||
ungetc ( c, f );
|
||||
return False;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -96,4 +96,3 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
|
|||
{
|
||||
return BZ_VERSION;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -250,4 +250,3 @@ void BZ_API(BZ2_bzWriteClose64)
|
|||
BZ2_bzCompressEnd ( &(bzf->strm) );
|
||||
free ( bzf );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,4 +85,3 @@ typedef unsigned short UInt16;
|
|||
Only here to avoid probs with 64-bit platforms.
|
||||
--*/
|
||||
typedef int IntNative;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,4 +5,3 @@
|
|||
#include <math.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -33,4 +33,3 @@ main(int argc, char *argv[])
|
|||
}
|
||||
exits(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1633,5 +1633,3 @@ error:
|
|||
qunlock(&sdraw.lk);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -125,4 +125,3 @@ fprint(2, "%s...\n", p);
|
|||
}
|
||||
exits(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -315,5 +315,3 @@ kfmt(Fmt *f)
|
|||
return fmtprint(f, "<%s>", xkey[i].s);
|
||||
return fmtprint(f, "<%c>", c);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -56,4 +56,3 @@ unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
|
|||
{
|
||||
return _unloadmemimage(i, r, data, ndata);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -107,4 +107,3 @@ runxevent(XEvent *xev)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,4 +121,3 @@ freememimage(Memimage *m)
|
|||
}
|
||||
_freememimage(m);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
|
|||
_xputxdata(i, r);
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,4 +147,3 @@ xdraw(Memdrawparam *par)
|
|||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -103,6 +103,3 @@ _xdirtyxdata(Memimage *m, Rectangle r)
|
|||
xm->dirty = 1;
|
||||
addrect(&xm->dirtyr, r);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ loadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
|
|||
_xputxdata(i, r);
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -635,4 +635,3 @@ runxevent(XEvent *xev)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
|
|||
_xgetxdata(i, r);
|
||||
return _unloadmemimage(i, r, data, ndata);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,4 +43,3 @@ _xmovewindow(Rectangle r)
|
|||
XConfigureWindow(_x.display, _x.drawable, value_mask, &e);
|
||||
XFlush(_x.display);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -337,4 +337,3 @@ getwidth(void)
|
|||
}else
|
||||
linewidth = ws.ws_col;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -928,4 +928,3 @@ initmach(Machine *m, char *name)
|
|||
*q = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -231,4 +231,3 @@ threadmain(int argc, char **argv)
|
|||
}
|
||||
proccreate(updateproc, nil, STACK);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -232,4 +232,3 @@ resizethread(void *v)
|
|||
while(recv(mousectl->resizec, &x) >= 0)
|
||||
eresized(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,4 +162,3 @@ wcstombs(char *s, const wchar_t *pwcs, size_t n)
|
|||
}
|
||||
return p-s;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,4 +39,3 @@ estrdup(char *s)
|
|||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -600,4 +600,3 @@ dirpackage(uchar *buf, long ts, Dir **d)
|
|||
|
||||
return nn;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue