Remove redundant whitespace

This commit is contained in:
Brian Somers 2009-05-18 01:45:52 +00:00
parent e9902ec0a6
commit 8ba7efdad8

View File

@ -764,7 +764,7 @@ addelem_tty(struct listinfo *inf, const char *elem)
strlcat(pathbuf2, elem, sizeof(pathbuf2)); strlcat(pathbuf2, elem, sizeof(pathbuf2));
if (stat(pathbuf2, &sb) == 0 && S_ISCHR(sb.st_mode)) { if (stat(pathbuf2, &sb) == 0 && S_ISCHR(sb.st_mode)) {
/* No need to repeat stat() && S_ISCHR() checks */ /* No need to repeat stat() && S_ISCHR() checks */
ttypath = NULL; ttypath = NULL;
break; break;
} }
/* Check to see if /dev/pts/${elem} exists */ /* Check to see if /dev/pts/${elem} exists */
@ -772,7 +772,7 @@ addelem_tty(struct listinfo *inf, const char *elem)
strlcat(pathbuf3, elem, sizeof(pathbuf3)); strlcat(pathbuf3, elem, sizeof(pathbuf3));
if (stat(pathbuf3, &sb) == 0 && S_ISCHR(sb.st_mode)) { if (stat(pathbuf3, &sb) == 0 && S_ISCHR(sb.st_mode)) {
/* No need to repeat stat() && S_ISCHR() checks */ /* No need to repeat stat() && S_ISCHR() checks */
ttypath = NULL; ttypath = NULL;
break; break;
} }
break; break;
@ -992,7 +992,6 @@ descendant_sort(KINFO *ki, int items)
ki[src].ki_d.prefix[n * 2] = ki[src].ki_d.prefix[n * 2] =
path[n / 8] & 1 << (n % 8) ? '|' : ' '; path[n / 8] & 1 << (n % 8) ? '|' : ' ';
ki[src].ki_d.prefix[n * 2 + 1] = ' '; ki[src].ki_d.prefix[n * 2 + 1] = ' ';
} }
if (n == lvl - 2) { if (n == lvl - 2) {
/* Have I any more siblings? */ /* Have I any more siblings? */