summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-04-24 06:44:33 +0000
committerbde <bde@FreeBSD.org>2004-04-24 06:44:33 +0000
commit648e15957e6a159991b336b5c6bd276f05a23ab1 (patch)
treefb3f434927d1eff6663f1c23fdf64fee79c4ec73 /sys
parent8c5804d307a54c50b9b934d3781aae04f534acee (diff)
downloadFreeBSD-src-648e15957e6a159991b336b5c6bd276f05a23ab1.zip
FreeBSD-src-648e15957e6a159991b336b5c6bd276f05a23ab1.tar.gz
Fixed some style bugs (useless forward declarations of structs and
misplaced forward declarations of structs). This also reduces namespace pollution (the misplaced declarations were declared in the !_KERNEL case when they are not used).
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/imgact.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/sys/imgact.h b/sys/sys/imgact.h
index 80bc6d8..142d029 100644
--- a/sys/sys/imgact.h
+++ b/sys/sys/imgact.h
@@ -34,12 +34,6 @@
#define MAXSHELLCMDLEN 128
-struct label;
-struct sf_buf;
-struct sysentvec;
-struct thread;
-struct vm_object;
-
struct image_params {
struct proc *proc; /* our process struct */
char **userspace_argv; /* system call argument */
@@ -67,6 +61,9 @@ struct image_params {
};
#ifdef _KERNEL
+struct sysentvec;
+struct thread;
+
int exec_check_permissions(struct image_params *);
register_t *exec_copyout_strings(struct image_params *);
int exec_extract_strings(struct image_params *);
OpenPOWER on IntegriCloud