-/* $OpenBSD: c_ksh.c,v 1.45 2015/10/19 14:42:16 mmcc Exp $ */
+/* $OpenBSD: c_ksh.c,v 1.46 2015/10/21 15:20:37 mmcc Exp $ */
/*
* built-in Korn commands: c_*
wp += builtin_opt.optind;
if (*wp == NULL) /* list all */
- rv = x_bind((char*)NULL, (char*)NULL, 0, list);
+ rv = x_bind(NULL, NULL, 0, list);
for (; *wp != NULL; wp++) {
cp = strchr(*wp, '=');
-/* $OpenBSD: c_sh.c,v 1.52 2015/10/19 14:42:16 mmcc Exp $ */
+/* $OpenBSD: c_sh.c,v 1.53 2015/10/21 15:20:37 mmcc Exp $ */
/*
* built-in Bourne commands
}
unset(vp, strchr(id, '[') ? 1 : 0);
} else { /* unset function */
- define(id, (struct op *) NULL);
+ define(id, NULL);
}
return 0;
}
-/* $OpenBSD: history.c,v 1.49 2015/10/19 14:42:16 mmcc Exp $ */
+/* $OpenBSD: history.c,v 1.50 2015/10/21 15:20:37 mmcc Exp $ */
/*
* command history
void
init_histvec(void)
{
- if (history == (char **)NULL) {
+ if (history == NULL) {
histsize = HISTORYSIZE;
history = alloc(histsize*sizeof (char *), APERM);
histptr = history - 1;