From f9afbabce7bbe54de49d9c0e09e9c9084ab79971 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sun, 22 Jan 2023 00:00:00 -0600 Subject: [PATCH] misc: eliminated some instances of trailing whitespace Signed-off-by: Jim Warner --- local/strverscmp.c | 8 ++++---- man/ps.1 | 6 +++--- src/tests/test_shm.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/local/strverscmp.c b/local/strverscmp.c index 2d1b4066..e71ecd09 100644 --- a/local/strverscmp.c +++ b/local/strverscmp.c @@ -22,7 +22,7 @@ /* #include "safe-ctype.h" */ #include -/* +/* @deftypefun int strverscmp (const char *@var{s1}, const char *@var{s2}) The @code{strverscmp} function compares the string @var{s1} against @var{s2}, considering them as holding indices/version numbers. Return @@ -144,14 +144,14 @@ strverscmp (const char *s1, const char *s2) { case CMP: return diff; - + case LEN: while (isdigit (*p1++)) if (!isdigit (*p2++)) return 1; - + return isdigit (*p2) ? -1 : diff; - + default: return state; } diff --git a/man/ps.1 b/man/ps.1 index 095425f4..382e9786 100644 --- a/man/ps.1 +++ b/man/ps.1 @@ -1256,7 +1256,7 @@ T} drs DRS T{ data resident set size, the amount of private memory \fIreserved\fR by a process. -It is also known as DATA. Such memory may not yet be mapped to +It is also known as DATA. Such memory may not yet be mapped to .B rss but will always be included included in the @@ -1278,12 +1278,12 @@ otherwise. (alias T} eip EIP T{ -instruction pointer. As of kernel 4.9.xx will be zeroed out unless task is +instruction pointer. As of kernel 4.9.xx will be zeroed out unless task is exiting or being core dumped. T} esp ESP T{ -stack pointer. As of kernel 4.9.xx will be zeroed out unless task is +stack pointer. As of kernel 4.9.xx will be zeroed out unless task is exiting or being core dumped. T} diff --git a/src/tests/test_shm.c b/src/tests/test_shm.c index 49067304..39173796 100644 --- a/src/tests/test_shm.c +++ b/src/tests/test_shm.c @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) sleep_time = DEFAULT_SLEEPTIME; while ((opt = getopt(argc, argv, "s:")) != -1) - { + { switch(opt) { case 's':