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:
@@ -135,7 +135,7 @@ main(int argc, char *argv[])
|
||||
code bootstrap[32];
|
||||
char num[12], *rcmain;
|
||||
int i;
|
||||
|
||||
|
||||
/* needed for rcmain later */
|
||||
putenv("PLAN9", unsharp("#9"));
|
||||
|
||||
@@ -690,7 +690,7 @@ word*
|
||||
copynwords(word *a, word *tail, int n)
|
||||
{
|
||||
word *v, **end;
|
||||
|
||||
|
||||
v = 0;
|
||||
end = &v;
|
||||
while(n-- > 0){
|
||||
|
||||
@@ -37,11 +37,11 @@ Xasync(void)
|
||||
* ssh foo & will reopen /dev/tty, try to read a password,
|
||||
* get a signal, and repeat, in a tight loop, forever.
|
||||
* Arguably this is a bug in ssh (it behaves the same
|
||||
* way under bash as under rc) but I'm fixing it here
|
||||
* way under bash as under rc) but I'm fixing it here
|
||||
* anyway. If we dissociate the process from the tty,
|
||||
* then it won't be able to open /dev/tty ever again.
|
||||
* The SIG_IGN on SIGTTOU makes writing the tty
|
||||
* (via fd 1 or 2, for example) succeed even though
|
||||
* (via fd 1 or 2, for example) succeed even though
|
||||
* our pgrp is not the terminal's controlling pgrp.
|
||||
*/
|
||||
if((tty = open("/dev/tty", OREAD)) >= 0){
|
||||
|
||||
@@ -50,7 +50,7 @@ advance(void)
|
||||
}
|
||||
/*
|
||||
* read a character from the input stream
|
||||
*/
|
||||
*/
|
||||
|
||||
int
|
||||
getnext(void)
|
||||
|
||||
@@ -343,7 +343,7 @@ char **mkenv(){
|
||||
}
|
||||
*ep=0;
|
||||
qsort((char *)env, nvar, sizeof ep[0], cmpenv);
|
||||
return env;
|
||||
return env;
|
||||
}
|
||||
void Updenv(void){}
|
||||
void Execute(word *args, word *path)
|
||||
@@ -556,7 +556,7 @@ int
|
||||
exitcode(char *msg)
|
||||
{
|
||||
int n;
|
||||
|
||||
|
||||
n = atoi(msg);
|
||||
if(n == 0)
|
||||
n = 1;
|
||||
@@ -579,7 +579,7 @@ void
|
||||
delwaitpid(int pid)
|
||||
{
|
||||
int r, w;
|
||||
|
||||
|
||||
for(r=w=0; r<nwaitpids; r++)
|
||||
if(waitpids[r] != pid)
|
||||
waitpids[w++] = waitpids[r];
|
||||
@@ -596,7 +596,7 @@ int
|
||||
havewaitpid(int pid)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for(i=0; i<nwaitpids; i++)
|
||||
if(waitpids[i] == pid)
|
||||
return 1;
|
||||
|
||||
@@ -136,7 +136,7 @@ void
|
||||
freetree(tree *p)
|
||||
{
|
||||
if(p==0)
|
||||
return;
|
||||
return;
|
||||
freetree(p->child[0]);
|
||||
freetree(p->child[1]);
|
||||
freetree(p->child[2]);
|
||||
|
||||
Reference in New Issue
Block a user