From c1d75210e2c793e8e0b6cd0ce52bc8f9a4031869 Mon Sep 17 00:00:00 2001 From: sobomax Date: Sun, 30 Jan 2005 06:43:17 +0000 Subject: [PATCH] Fix build on AMD64 (and probably other arches where size_t != int). Submitted by: Tinderbox MFC after: 2 weeks --- sys/kern/imgact_shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c index 07bcd574a957..42a93936154b 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)