From cb8406427adf0504ded325165defb9bc09bc8ee0 Mon Sep 17 00:00:00 2001 From: albert <> Date: Thu, 5 Dec 2002 02:07:39 +0000 Subject: [PATCH] redundant code --- top.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/top.c b/top.c index 9c870cba..9ad30673 100644 --- a/top.c +++ b/top.c @@ -287,7 +287,7 @@ static inline char *scat (char *restrict dst, const char *restrict src) * in some proc cmdlines, a choice was offered twix space or null. */ static char *strim (int sp, char *str) { - static const char ws[] = "\b\e\f\n\r\t\v"; + static const char ws[] = "\b\e\f\n\r\t\v\0133"; // \0133 is an escape char *p; if (sp) @@ -1278,6 +1278,7 @@ static int rc_read_old (const char *const buf, RCF_t *rc) { if (badchar > 3) return -8; // too much junk if (!c_show) return -9; // nothing was shown +#if 0 // Due to Rik blindly accepting damem's broken patches, procps-2.0.10 // has 3 ("three"!!!) instances of "#C", "LC", or "CPU". Fix that here. // Some people are maintainers, and others are human patchbots. @@ -1304,6 +1305,7 @@ static int rc_read_old (const char *const buf, RCF_t *rc) { tmp = strchr(fields, '.'); // find back saved spot *tmp = letter; } +#endif // rest of file is optional, but better look right if it exists if (!*cp) return 12;