From: albert <> Date: Sun, 8 Dec 2002 20:33:07 +0000 (+0000) Subject: compile fix X-Git-Tag: v3.3.0~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf7be5b49be110d86893e4c93566dcba9a9178f6;p=procps-ng compile fix --- 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;