miscellaneous: clean up trailing whitespace once again
An earlier commit attempted to cleanse our environment
of all useless trailing whitespace. But the effort did
not catch 'empty' lines with a single space before ^J.
This commit hopefully finishes off the earlier effort.
In the meantime, let's pray that contributors' editors
are configured so that such wasted crap is disallowed!
Reference(s):
commit fe75e26ab6
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@ -145,9 +145,9 @@ Error: OVERRUN_STATIC:
|
||||
Thus it (39th element) cannot be used in referencing Fieldstab.
|
||||
However, two enums of higher value (X_XON=40 and X_XOF=41) *can* appear in those arrays.
|
||||
But the test against the fencepost ensures that those two enums are *never* used in referencing Fieldstab.
|
||||
|
||||
|
||||
When the analyzer sees the conditional using '<' and not '<=' it reports a false positive.
|
||||
|
||||
|
||||
i'm tired of explaining this so the program was changed to accommodate the tool's deficiency
|
||||
my_category: unavoidable_false_positive_but_patched_anyway
|
||||
top.c:1417: overrun-local: Overrunning static array "Fieldstab", with 39 elements, at position 39 with index variable "f".
|
||||
|
@ -65,7 +65,7 @@ int main (int argc, char **argv) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (list) {
|
||||
ut = fopen(UTMP_FILE, "r");
|
||||
while (fread(&uts, sizeof(uts), 1, ut))
|
||||
@ -106,7 +106,7 @@ int main (int argc, char **argv) {
|
||||
printf("ut_user: %s\n", user);
|
||||
printf("ut_host: %s\n", host);
|
||||
printf("ut_addr: %d\n\n", uts.ut_addr);
|
||||
|
||||
|
||||
printf("Modify this record? (y/N): "); fflush(stdout);
|
||||
/* Ask if to delete or no */
|
||||
if ((ch = getchar()) == 'y' || ch == 'Y') {
|
||||
|
Reference in New Issue
Block a user