summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_shell.c
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2005-01-30 06:43:17 +0000
committersobomax <sobomax@FreeBSD.org>2005-01-30 06:43:17 +0000
commitc1d75210e2c793e8e0b6cd0ce52bc8f9a4031869 (patch)
treeb185d47a9d6c7d2d842ec4160c90952af89cfcd1 /sys/kern/imgact_shell.c
parent464d7f1e2af731e4e43ae41c7c96a997d4f4e967 (diff)
downloadFreeBSD-src-c1d75210e2c793e8e0b6cd0ce52bc8f9a4031869.zip
FreeBSD-src-c1d75210e2c793e8e0b6cd0ce52bc8f9a4031869.tar.gz
Fix build on AMD64 (and probably other arches where size_t != int).
Submitted by: Tinderbox MFC after: 2 weeks
Diffstat (limited to 'sys/kern/imgact_shell.c')
-rw-r--r--sys/kern/imgact_shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c
index 07bcd57..42a9393 100644
--- a/sys/kern/imgact_shell.c
+++ b/sys/kern/imgact_shell.c
@@ -50,7 +50,8 @@ exec_shell_imgact(imgp)
{
const char *image_header = imgp->image_header;
const char *ihp;
- int error, length, offset;
+ int error, offset;
+ size_t length;
/* a shell script? */
if (((const short *) image_header)[0] != SHELLMAGIC)
OpenPOWER on IntegriCloud