summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-14 15:14:58 +0000
committerbde <bde@FreeBSD.org>1997-04-14 15:14:58 +0000
commit93bc52bbfc3efe16fd656b69eca9a3d6ee133b39 (patch)
tree7f7e083166e3b5d1d22353d94d3da03a8196a826
parentacc3e38f7865a273ef398b8a6abefcfa397249e0 (diff)
downloadFreeBSD-src-93bc52bbfc3efe16fd656b69eca9a3d6ee133b39.zip
FreeBSD-src-93bc52bbfc3efe16fd656b69eca9a3d6ee133b39.tar.gz
Fixed missing const. Include <unistd.h> so that the function type gets
checked. Submitted by: partly by roberto
-rw-r--r--lib/libc/sys/truncate.c4
1 files changed, 3 insertions, 1 deletions
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 <sys/types.h>
#include <sys/syscall.h>
+#include <unistd.h>
+
/*
* 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;
{
OpenPOWER on IntegriCloud