From 93bc52bbfc3efe16fd656b69eca9a3d6ee133b39 Mon Sep 17 00:00:00 2001 From: bde 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') diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c index 0d50cd7..5bfeeb6 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.1