From 11663637b8c9e7bf410e1ee5bf055a61fdfe523c Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 14 Apr 1997 15:14:58 +0000 Subject: Fixed missing const. Include so that the function type gets checked. Submitted by: partly by roberto --- lib/libc/sys/truncate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc/sys/truncate.c') diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c index 0d50cd73d885..5bfeeb665c9a 100644 --- a/lib/libc/sys/truncate.c +++ b/lib/libc/sys/truncate.c @@ -38,13 +38,15 @@ static char sccsid[] = "@(#)truncate.c 8.1 (Berkeley) 6/17/93"; #include #include +#include + /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. */ int truncate(path, length) - char *path; + const char *path; off_t length; { -- cgit v1.2.3