Fix build on AMD64 (and probably other arches where size_t != int).

Submitted by:	Tinderbox
MFC after:	2 weeks
This commit is contained in:
Maxim Sobolev 2005-01-30 06:43:17 +00:00
parent 78bb1895ab
commit ec217396c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141028

View File

@ -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)