Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by:	cperciva
MFC After:	3 days
This commit is contained in:
Eitan Adler 2012-06-19 06:10:31 +00:00
parent 4ab8581b32
commit c84c09f445
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237257

View File

@ -327,7 +327,6 @@ show_dialog(struct keymap **km_sorted, int num_keymaps)
FILE *fp;
char *cmd, *dialog;
char tmp_name[] = "/tmp/_kbd_lang.XXXX";
const char *ext;
int fd, i, size;
fd = mkstemp(tmp_name);
@ -339,8 +338,6 @@ show_dialog(struct keymap **km_sorted, int num_keymaps)
asprintf(&dialog, "/usr/bin/dialog --clear --title \"Keyboard Menu\" "
"--menu \"%s\" 0 0 0", menu);
ext = extract_name(dir);
/* start right font, assume that current font is equal
* to default font in /etc/rc.conf
*