summaryrefslogtreecommitdiffstats
path: root/bin/sh/redir.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-04-05 20:01:08 +0000
committerjilles <jilles@FreeBSD.org>2014-04-05 20:01:08 +0000
commitb37f0c842bea0bfc910e31fe1a844c63b9226973 (patch)
tree548152efe632010bb1316d134f29bdf60c9c0f9d /bin/sh/redir.c
parent76e2b229a433780382821dae33f8f97be99398bc (diff)
downloadFreeBSD-src-b37f0c842bea0bfc910e31fe1a844c63b9226973.zip
FreeBSD-src-b37f0c842bea0bfc910e31fe1a844c63b9226973.tar.gz
MFC r263195: sh: Add some consts.
Diffstat (limited to 'bin/sh/redir.c')
-rw-r--r--bin/sh/redir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/redir.c b/bin/sh/redir.c
index 79728a0..647b10a 100644
--- a/bin/sh/redir.c
+++ b/bin/sh/redir.c
@@ -152,7 +152,7 @@ openredirect(union node *redir, char memory[10])
{
struct stat sb;
int fd = redir->nfile.fd;
- char *fname;
+ const char *fname;
int f;
int e;
@@ -250,7 +250,7 @@ movefd:
static int
openhere(union node *redir)
{
- char *p;
+ const char *p;
int pip[2];
size_t len = 0;
int flags;
OpenPOWER on IntegriCloud