compile fix
This commit is contained in:
parent
eefbbef08b
commit
cf7be5b49b
4
top.c
4
top.c
@ -1106,6 +1106,7 @@ static FLD_t Fieldstab[] = {
|
|||||||
#define FT_OLD_fmt 2
|
#define FT_OLD_fmt 2
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
// convert, or 0 for failure
|
// convert, or 0 for failure
|
||||||
static int ft_cvt_char (const int fr, const int to, int c) {
|
static int ft_cvt_char (const int fr, const int to, int c) {
|
||||||
int j = -1;
|
int j = -1;
|
||||||
@ -1116,6 +1117,7 @@ static int ft_cvt_char (const int fr, const int to, int c) {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// convert
|
// convert
|
||||||
@ -1263,8 +1265,8 @@ static int rc_read_old (const char *const buf, RCF_t *rc) {
|
|||||||
u = 0;
|
u = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
if (u+1 >= sizeof rc->win[0].fieldscur) return -1;
|
|
||||||
int c = *cp++;
|
int c = *cp++;
|
||||||
|
if (u+1 >= sizeof rc->win[0].fieldscur) return -1;
|
||||||
if (c == '\0') return -2;
|
if (c == '\0') return -2;
|
||||||
if (c == '\n') break;
|
if (c == '\n') break;
|
||||||
if (c & ~0x7f) return -3;
|
if (c & ~0x7f) return -3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user