address latest Debian gcc-snapshot’s warnings (some actual bugs!)

This commit is contained in:
tg
2016-03-04 14:26:16 +00:00
parent e8d6b5c2a3
commit cb0604767f
8 changed files with 71 additions and 63 deletions

6
edit.c
View File

@ -28,7 +28,7 @@
#ifndef MKSH_NO_CMDLINE_EDITING
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.293 2016/01/21 18:24:37 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.294 2016/03/04 14:26:12 tg Exp $");
/*
* in later versions we might use libtermcap for this, but since external
@ -4597,8 +4597,8 @@ vi_cmd(int argcnt, const char *cmd)
static int
domove(int argcnt, const char *cmd, int sub)
{
int bcount, i = 0, t;
int ncursor = 0;
int ncursor = 0, i = 0, t;
unsigned int bcount;
switch (*cmd) {
case 'b':