* TNF needs more to silence char subscript warnings (on 3.0-stable)
* bump vsn
This commit is contained in:
parent
f54064509e
commit
64598758fb
4
check.t
4
check.t
|
@ -1,4 +1,4 @@
|
|||
# $MirOS: src/bin/mksh/check.t,v 1.45 2006/07/07 09:52:20 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.46 2006/07/11 14:51:00 tg Exp $
|
||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||
|
@ -3784,5 +3784,5 @@ category: pdksh
|
|||
stdin:
|
||||
echo $KSH_VERSION
|
||||
expected-stdout:
|
||||
@(#)MIRBSD KSH R27 2006/07/03
|
||||
@(#)MIRBSD KSH R27 2006/07/11
|
||||
---
|
||||
|
|
14
edit.c
14
edit.c
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.22 2006/07/03 12:16:29 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.23 2006/07/11 14:51:01 tg Exp $");
|
||||
|
||||
/* tty driver characters we are interested in */
|
||||
typedef struct {
|
||||
|
@ -2821,10 +2821,10 @@ x_fold_case(int c)
|
|||
if (cp != xep) {
|
||||
if (c == 'L') { /* lowercase */
|
||||
if (isupper((unsigned char)*cp))
|
||||
*cp = tolower(*cp);
|
||||
*cp = tolower((unsigned char)*cp);
|
||||
} else { /* uppercase, capitalize */
|
||||
if (islower((unsigned char)*cp))
|
||||
*cp = toupper(*cp);
|
||||
*cp = toupper((unsigned char)*cp);
|
||||
}
|
||||
cp++;
|
||||
}
|
||||
|
@ -2834,10 +2834,10 @@ x_fold_case(int c)
|
|||
while (cp != xep && !is_mfs(*cp)) {
|
||||
if (c == 'U') { /* uppercase */
|
||||
if (islower((unsigned char)*cp))
|
||||
*cp = toupper(*cp);
|
||||
*cp = toupper((unsigned char)*cp);
|
||||
} else { /* lowercase, capitalize */
|
||||
if (isupper((unsigned char)*cp))
|
||||
*cp = tolower(*cp);
|
||||
*cp = tolower((unsigned char)*cp);
|
||||
}
|
||||
cp++;
|
||||
}
|
||||
|
@ -3954,11 +3954,11 @@ vi_cmd(int argcnt, const char *cmd)
|
|||
if (islower((unsigned char)*p)) {
|
||||
modified = 1;
|
||||
hnum = hlast;
|
||||
*p = toupper(*p);
|
||||
*p = toupper((unsigned char)*p);
|
||||
} else if (isupper((unsigned char)*p)) {
|
||||
modified = 1;
|
||||
hnum = hlast;
|
||||
*p = tolower(*p);
|
||||
*p = tolower((unsigned char)*p);
|
||||
}
|
||||
if (es->cursor < es->linelen - 1)
|
||||
es->cursor++;
|
||||
|
|
4
main.c
4
main.c
|
@ -6,9 +6,9 @@
|
|||
#define EXTERN /* define EXTERNs in sh.h */
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.40 2006/07/03 12:16:30 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.41 2006/07/11 14:51:01 tg Exp $");
|
||||
|
||||
#define MKSH_VERSION "@(#)MIRBSD KSH R27 2006/07/03"
|
||||
#define MKSH_VERSION "@(#)MIRBSD KSH R27 2006/07/11"
|
||||
|
||||
extern char **environ;
|
||||
|
||||
|
|
6
var.c
6
var.c
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.20 2006/07/03 12:16:31 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.21 2006/07/11 14:51:01 tg Exp $");
|
||||
|
||||
/*
|
||||
* Variables
|
||||
|
@ -530,11 +530,11 @@ formatstr(struct tbl *vp, const char *s)
|
|||
if (vp->flag & UCASEV_AL) {
|
||||
for (q = p; *q; q++)
|
||||
if (islower((unsigned char)*q))
|
||||
*q = toupper(*q);
|
||||
*q = toupper((unsigned char)*q);
|
||||
} else if (vp->flag & LCASEV) {
|
||||
for (q = p; *q; q++)
|
||||
if (isupper((unsigned char)*q))
|
||||
*q = tolower(*q);
|
||||
*q = tolower((unsigned char)*q);
|
||||
}
|
||||
|
||||
return p;
|
||||
|
|
Loading…
Reference in New Issue