code clean up

* viewer/mcviewer.c: remove unused variable ‘enc’
    * viewer/actions_cmd.c: remove superfluous param
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2009-08-28 20:14:30 +00:00
parent 8407f5fd9a
commit d89306849c
2 changed files with 1 additions and 2 deletions

View File

@ -519,7 +519,7 @@ mcview_moveto_line_cmd (mcview_t * view)
g_snprintf (prompt, sizeof (prompt),
_(" The current line number is %lld.\n"
" Enter the new line number:"), (line + 1), "");
" Enter the new line number:"), (line + 1));
answer = input_dialog (_(" Goto line "), prompt, MC_HISTORY_VIEW_GOTO_LINE, "");
if (answer != NULL && answer[0] != '\0') {
errno = 0;

View File

@ -275,7 +275,6 @@ mcview_load (mcview_t * view, const char *command, const char *file, int start_l
int i, type;
int fd = -1;
char tmp[BUF_MEDIUM];
const char *enc;
char *canon_fname;
struct stat st;
#ifdef HAVE_CHARSET