svn commit: r237421 - stable/9/usr.sbin/kbdmap

Eitan Adler eadler at FreeBSD.org
Fri Jun 22 05:40:15 UTC 2012


Author: eadler
Date: Fri Jun 22 05:40:14 2012
New Revision: 237421
URL: http://svn.freebsd.org/changeset/base/237421

Log:
  MFC r237257:
  	Remove variables which are initialized but never used thereafter reported by gcc46 warning
  
  PR:		bin/163847
  Approved by:	cperciva (implicit)

Modified:
  stable/9/usr.sbin/kbdmap/kbdmap.c
Directory Properties:
  stable/9/usr.sbin/kbdmap/   (props changed)

Modified: stable/9/usr.sbin/kbdmap/kbdmap.c
==============================================================================
--- stable/9/usr.sbin/kbdmap/kbdmap.c	Fri Jun 22 05:36:50 2012	(r237420)
+++ stable/9/usr.sbin/kbdmap/kbdmap.c	Fri Jun 22 05:40:14 2012	(r237421)
@@ -327,7 +327,6 @@ show_dialog(struct keymap **km_sorted, i
 	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, i
 	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
 	 *	


More information about the svn-src-all mailing list