aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-09-28 21:04:08 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-09-28 21:05:07 +0000
commit10297a9ed488a9fff159ae495b61185e6f50e22a (patch)
tree0cdb157cd5cabb96647efabd60c40507d402b062 /bin
parent5ceec6c1054e6bde3b72672f33705a044fc0eb86 (diff)
downloadsrc-10297a9ed488a9fff159ae495b61185e6f50e22a.tar.gz
src-10297a9ed488a9fff159ae495b61185e6f50e22a.zip
sh: Fix mismatch in array bounds for vforkexecshell().
Reviewed by: imp, jilles, emaste Reported by: GCC -Warray-parameter Differential Revision: https://reviews.freebsd.org/D36760
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/jobs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/jobs.h b/bin/sh/jobs.h
index d0caf0638617..411d08f27a67 100644
--- a/bin/sh/jobs.h
+++ b/bin/sh/jobs.h
@@ -55,7 +55,7 @@ void setjobctl(int);
void showjobs(int, int);
struct job *makejob(union node *, int);
pid_t forkshell(struct job *, union node *, int);
-pid_t vforkexecshell(struct job *, char **, char **, const char *, int, int []);
+pid_t vforkexecshell(struct job *, char **, char **, const char *, int, int [2]);
int waitforjob(struct job *, int *);
int stoppedjobs(void);
int backgndpidset(void);