msh: style cleanups. No code changes.
This commit is contained in:
@@ -4316,9 +4316,7 @@ static void globname(char *we, char *pp)
|
||||
dname[NAME_MAX] = '\0';
|
||||
while ((de = readdir(dirp)) != NULL) {
|
||||
/* XXX Hmmm... What this could be? (abial) */
|
||||
/*
|
||||
if (ent[j].d_ino == 0)
|
||||
continue;
|
||||
/* if (ent[j].d_ino == 0) continue;
|
||||
*/
|
||||
strncpy(dname, de->d_name, NAME_MAX);
|
||||
if (dname[0] == '.')
|
||||
@@ -4825,7 +4823,7 @@ static int linechar(struct ioarg *ap)
|
||||
}
|
||||
|
||||
/*
|
||||
* remap fd into Shell's fd space
|
||||
* Remap fd into shell's fd space
|
||||
*/
|
||||
static int remap(int fd)
|
||||
{
|
||||
@@ -5211,7 +5209,7 @@ int msh_main(int argc, char **argv)
|
||||
|
||||
/* Shell is non-interactive, activate printf-based debug */
|
||||
#ifdef MSHDEBUG
|
||||
mshdbg = (int) (((char) (mshdbg_var->value[0])) - '0');
|
||||
mshdbg = mshdbg_var->value[0] - '0';
|
||||
if (mshdbg < 0)
|
||||
mshdbg = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user