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
|
|
@ -112,7 +112,7 @@ readfile(char *s)
|
|||
continue;
|
||||
|
||||
/*
|
||||
* if it's less than 30 seconds since we read it, or it
|
||||
* if it's less than 30 seconds since we read it, or it
|
||||
* hasn't changed, send back our copy
|
||||
*/
|
||||
if(time(0) - r->rdtime < 30)
|
||||
|
|
@ -215,7 +215,7 @@ tryfindpicture(char *dom, char *user, char *dir, char *dict)
|
|||
{
|
||||
static char buf[1024];
|
||||
char *file, *p, *nextp, *q;
|
||||
|
||||
|
||||
if((file = readfile(dict)) == nil)
|
||||
return nil;
|
||||
|
||||
|
|
@ -247,7 +247,7 @@ static char*
|
|||
estrstrdup(char *a, char *b)
|
||||
{
|
||||
char *t;
|
||||
|
||||
|
||||
t = emalloc(strlen(a)+strlen(b)+1);
|
||||
strcpy(t, a);
|
||||
strcat(t, b);
|
||||
|
|
@ -261,7 +261,7 @@ tryfindfiledir(char *dom, char *user, char *dir)
|
|||
int fd;
|
||||
int i, n;
|
||||
Dir *d;
|
||||
|
||||
|
||||
/*
|
||||
* If this directory has a .machinelist, use it.
|
||||
*/
|
||||
|
|
@ -279,7 +279,7 @@ tryfindfiledir(char *dom, char *user, char *dir)
|
|||
return x;
|
||||
}
|
||||
free(dict);
|
||||
|
||||
|
||||
/*
|
||||
* If not, recurse into subdirectories.
|
||||
* Ignore 48x48xN directories for now.
|
||||
|
|
@ -305,7 +305,7 @@ tryfindfiledir(char *dom, char *user, char *dir)
|
|||
free(d);
|
||||
}
|
||||
close(fd);
|
||||
|
||||
|
||||
/*
|
||||
* Handle 48x48xN directories in the right order.
|
||||
*/
|
||||
|
|
@ -398,7 +398,7 @@ freefacefile(Facefile *f)
|
|||
return;
|
||||
if(++nsaved > Nsave)
|
||||
clearsaved();
|
||||
}
|
||||
}
|
||||
|
||||
static Image*
|
||||
myallocimage(ulong chan)
|
||||
|
|
@ -413,7 +413,7 @@ myallocimage(ulong chan)
|
|||
}
|
||||
return img;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static Image*
|
||||
readbit(int fd, ulong chan)
|
||||
|
|
@ -527,14 +527,14 @@ readface(char *fn)
|
|||
mask = myallocimage(GREY1);
|
||||
if(mask == nil)
|
||||
goto Done;
|
||||
if(unloadimage(face, face->r, data, Facesize*Facesize) != Facesize*Facesize){
|
||||
if(unloadimage(face, face->r, data, Facesize*Facesize) != Facesize*Facesize){
|
||||
freeimage(mask);
|
||||
goto Done;
|
||||
}
|
||||
bits = 0;
|
||||
p = mdata;
|
||||
for(y=0; y<Facesize; y++){
|
||||
for(x=0; x<Facesize; x++){
|
||||
for(x=0; x<Facesize; x++){
|
||||
bits <<= 1;
|
||||
if(data[Facesize*y+x] != 0xFF)
|
||||
bits |= 1;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ enum
|
|||
Infolines = 9,
|
||||
|
||||
HhmmTime = 18*60*60, /* max age of face to display hh:mm time */
|
||||
|
||||
|
||||
STACK = 32768
|
||||
};
|
||||
|
||||
|
|
@ -293,7 +293,7 @@ updatetimes(void)
|
|||
continue;
|
||||
if(((long)(now - f->time) <= HhmmTime) != f->recent)
|
||||
drawface(f, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -610,7 +610,7 @@ click(int button, Mouse *m)
|
|||
return;
|
||||
}else{
|
||||
for(i=first; i<last; i++) /* clear vwhois faces */
|
||||
if(ptinrect(p, facerect(i-first))
|
||||
if(ptinrect(p, facerect(i-first))
|
||||
&& strstr(faces[i]->str[Sshow], "/XXXvwhois")){
|
||||
lockdisplay(display);
|
||||
delface(i);
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ setname(Face *f, char *sender)
|
|||
|
||||
static char* months[] = {
|
||||
"jan", "feb", "mar", "apr",
|
||||
"may", "jun", "jul", "aug",
|
||||
"may", "jun", "jul", "aug",
|
||||
"sep", "oct", "nov", "dec"
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -39,4 +39,3 @@ estrdup(char *s)
|
|||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue