top: changed 'err' to 'errmsg', avoid conflict with <err.h>
This commit is contained in:
parent
db88a8d242
commit
2246663f66
10
top/top.c
10
top/top.c
@ -2324,12 +2324,12 @@ static void parse_args (char **args) {
|
|||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
case 'U':
|
case 'U':
|
||||||
{ const char *err;
|
{ const char *errmsg;
|
||||||
if (Monpidsidx || Curwin->usrseltyp) error_exit(N_txt(SELECT_clash_txt));
|
if (Monpidsidx || Curwin->usrseltyp) error_exit(N_txt(SELECT_clash_txt));
|
||||||
if (cp[1]) cp++;
|
if (cp[1]) cp++;
|
||||||
else if (*args) cp = *args++;
|
else if (*args) cp = *args++;
|
||||||
else error_exit(fmtmk(N_fmt(MISSING_args_fmt), ch));
|
else error_exit(fmtmk(N_fmt(MISSING_args_fmt), ch));
|
||||||
if ((err = user_certify(Curwin, cp, ch))) error_exit(err);
|
if ((errmsg = user_certify(Curwin, cp, ch))) error_exit(errmsg);
|
||||||
cp += strlen(cp);
|
cp += strlen(cp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2958,9 +2958,9 @@ static void keys_task (int ch) {
|
|||||||
case 'U':
|
case 'U':
|
||||||
case 'u':
|
case 'u':
|
||||||
if (VIZCHKw(w)) {
|
if (VIZCHKw(w)) {
|
||||||
const char *err;
|
const char *errmsg;
|
||||||
if ((err = user_certify(w, linein(N_txt(GET_user_ids_txt)), ch)))
|
if ((errmsg = user_certify(w, linein(N_txt(GET_user_ids_txt)), ch)))
|
||||||
show_msg(err);
|
show_msg(errmsg);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
|
Loading…
Reference in New Issue
Block a user