diff --git a/lib/libcurses/mvwin.c b/lib/libcurses/mvwin.c index f7c2eaddd520..14eb1897acd3 100644 --- a/lib/libcurses/mvwin.c +++ b/lib/libcurses/mvwin.c @@ -1,4 +1,4 @@ -/* $NetBSD: mvwin.c,v 1.17 2012/09/28 06:03:45 blymn Exp $ */ +/* $NetBSD: mvwin.c,v 1.18 2013/10/18 19:53:59 christos Exp $ */ /* * Copyright (c) 1981, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)mvwin.c 8.2 (Berkeley) 5/4/94"; #else -__RCSID("$NetBSD: mvwin.c,v 1.17 2012/09/28 06:03:45 blymn Exp $"); +__RCSID("$NetBSD: mvwin.c,v 1.18 2013/10/18 19:53:59 christos Exp $"); #endif #endif /* not lint */ @@ -52,7 +52,7 @@ int mvderwin(WINDOW *win, int dy, int dx) { WINDOW *parent; - int x, y, i; + int x, i; __LINE *lp, *olp; #ifdef HAVE_WCHAR __LDATA *cp; @@ -73,7 +73,6 @@ mvderwin(WINDOW *win, int dy, int dx) return ERR; x = parent->begx + dx; - y = parent->begy + dy; win->ch_off = x; /* Point the line pointers to line space */ diff --git a/lib/libmenu/internals.c b/lib/libmenu/internals.c index ae15172a3489..8dcca55b8a53 100644 --- a/lib/libmenu/internals.c +++ b/lib/libmenu/internals.c @@ -1,4 +1,4 @@ -/* $NetBSD: internals.c,v 1.16 2012/12/30 12:27:09 blymn Exp $ */ +/* $NetBSD: internals.c,v 1.17 2013/10/18 19:53:59 christos Exp $ */ /*- * Copyright (c) 1998-1999 Brett Lymn (blymn@baea.com.au, brett_lymn@yahoo.com.au) @@ -27,7 +27,7 @@ */ #include -__RCSID("$NetBSD: internals.c,v 1.16 2012/12/30 12:27:09 blymn Exp $"); +__RCSID("$NetBSD: internals.c,v 1.17 2013/10/18 19:53:59 christos Exp $"); #include #include @@ -517,7 +517,7 @@ _menui_draw_item(MENU *menu, int item) int _menui_draw_menu(MENU *menu) { - int rowmajor, i, j, k, row = -1, col = -1, stride; + int rowmajor, i, j, k, row = -1, stride; int incr, cur_row, offset, row_count; rowmajor = ((menu->opts & O_ROWMAJOR) == O_ROWMAJOR); @@ -555,7 +555,6 @@ _menui_draw_menu(MENU *menu) wattrset(menu->scrwin, menu->back); if (row < 0) { row = menu->items[menu->item_count - 1]->row; - col = menu->items[menu->item_count - 1]->col; } wmove(menu->scrwin, cur_row,