Avoid casting an lvalue.
This commit is contained in:
parent
91876f6dac
commit
7ee69fc344
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: apply.c,v 1.15 2005/01/20 15:44:59 xtraeme Exp $ */
|
/* $NetBSD: apply.c,v 1.16 2005/05/08 19:53:57 matt Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1994
|
* Copyright (c) 1994
|
||||||
@ -37,7 +37,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)apply.c 8.4 (Berkeley) 4/4/94";
|
static char sccsid[] = "@(#)apply.c 8.4 (Berkeley) 4/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: apply.c,v 1.15 2005/01/20 15:44:59 xtraeme Exp $");
|
__RCSID("$NetBSD: apply.c,v 1.16 2005/05/08 19:53:57 matt Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ main(int argc, char *argv[])
|
|||||||
int
|
int
|
||||||
shell_system(const char *command)
|
shell_system(const char *command)
|
||||||
{
|
{
|
||||||
static char *name, *shell;
|
static const char *name, *shell;
|
||||||
int status;
|
int status;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
int omask;
|
int omask;
|
||||||
@ -204,7 +204,7 @@ shell_system(const char *command)
|
|||||||
|
|
||||||
if (shell == NULL) {
|
if (shell == NULL) {
|
||||||
if ((shell = getenv("SHELL")) == NULL)
|
if ((shell = getenv("SHELL")) == NULL)
|
||||||
(const char *)shell = _PATH_BSHELL;
|
shell = _PATH_BSHELL;
|
||||||
if ((name = strrchr(shell, '/')) == NULL)
|
if ((name = strrchr(shell, '/')) == NULL)
|
||||||
name = shell;
|
name = shell;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user