even simpler *and* const clean
This commit is contained in:
parent
0b4f34e0a8
commit
e95a79e31c
@ -3,7 +3,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.66 2008/07/12 16:56:39 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.67 2008/07/12 17:16:03 tg Exp $");
|
||||
|
||||
/*-
|
||||
* MirOS: This is the default mapping type, and need not be specified.
|
||||
@ -1005,8 +1005,9 @@ inittraps(void)
|
||||
else {
|
||||
char *s;
|
||||
|
||||
s = !strncasecmp(cs, "SIG", 3) ? cs + 3 : cs;
|
||||
sigtraps[i].name = s = str_save(s, APERM);
|
||||
if (!strncasecmp(cs, "SIG", 3))
|
||||
cs += 3;
|
||||
sigtraps[i].name = s = str_save(cs, APERM);
|
||||
while ((*s = ksh_toupper(*s)))
|
||||
++s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user