From cf7be5b49be110d86893e4c93566dcba9a9178f6 Mon Sep 17 00:00:00 2001 From: albert <> Date: Sun, 8 Dec 2002 20:33:07 +0000 Subject: [PATCH] compile fix --- top.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/top.c b/top.c index 2dad1991..5d917e93 100644 --- a/top.c +++ b/top.c @@ -1106,6 +1106,7 @@ static FLD_t Fieldstab[] = { #define FT_OLD_fmt 2 +#if 0 // convert, or 0 for failure static int ft_cvt_char (const int fr, const int to, int c) { int j = -1; @@ -1116,6 +1117,7 @@ static int ft_cvt_char (const int fr, const int to, int c) { } return 0; } +#endif // convert @@ -1263,8 +1265,8 @@ static int rc_read_old (const char *const buf, RCF_t *rc) { u = 0; for (;;) { const char *tmp; - if (u+1 >= sizeof rc->win[0].fieldscur) return -1; int c = *cp++; + if (u+1 >= sizeof rc->win[0].fieldscur) return -1; if (c == '\0') return -2; if (c == '\n') break; if (c & ~0x7f) return -3;