From: mmcc Date: Sat, 17 Oct 2015 18:43:22 +0000 (+0000) Subject: Drop two useless defines. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=acac6842b473f1d44e0b35ae10a364b2f33bfe00;p=openbsd Drop two useless defines. ok nicm@ --- diff --git a/bin/ksh/exec.c b/bin/ksh/exec.c index 09f64af1b18..3f933ac55c2 100644 --- a/bin/ksh/exec.c +++ b/bin/ksh/exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.c,v 1.58 2015/10/17 18:26:24 mmcc Exp $ */ +/* $OpenBSD: exec.c,v 1.59 2015/10/17 18:43:22 mmcc Exp $ */ /* * execute command tree @@ -689,11 +689,11 @@ scriptexec(struct op *tp, char **ap) { char *shell; - shell = str_val(global(EXECSHELL_STR)); + shell = str_val(global("EXECSHELL")); if (shell && *shell) shell = search(shell, path, X_OK, NULL); if (!shell || !*shell) - shell = EXECSHELL; + shell = _PATH_BSHELL; *tp->args-- = tp->str; *tp->args = shell; diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h index 7d19db64202..208a4223345 100644 --- a/bin/ksh/sh.h +++ b/bin/ksh/sh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sh.h,v 1.38 2015/10/17 18:26:24 mmcc Exp $ */ +/* $OpenBSD: sh.h,v 1.39 2015/10/17 18:43:22 mmcc Exp $ */ /* * Public Domain Bourne/Korn shell @@ -37,9 +37,6 @@ # define EXTERN_DEFINED #endif -#define EXECSHELL _PATH_BSHELL -#define EXECSHELL_STR "EXECSHELL" - #define NELEM(a) (sizeof(a) / sizeof((a)[0])) #define sizeofN(type, n) (sizeof(type) * (n)) #define BIT(i) (1<<(i)) /* define bit in flag */