Date: Mon, 14 Apr 1997 14:33:36 +0200 From: Ollivier Robert <roberto@eurocontrol.fr> To: "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG> Subject: problem with libc/sys/truncate.c Message-ID: <19970414143336.59431@caerdonn.eurocontrol.fr>
next in thread | raw e-mail | index | archive | help
sys/types.h declares truncate as (const char *, off_t) whereas truncate.c has only char *. Here is a fix. Index: truncate.c =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/truncate.c,v retrieving revision 1.1.1.1 diff -u -2 -r1.1.1.1 truncate.c --- truncate.c 1994/05/27 04:57:57 1.1.1.1 +++ truncate.c 1997/04/14 12:26:52 @@ -45,5 +45,5 @@ int truncate(path, length) - char *path; + const char *path; off_t length; { -- Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr FreeBSD caerdonn.eurocontrol.fr 3.0-CURRENT #1: Wed Apr 9 15:05:08 CEST 1997 roberto@caerdonn.eurocontrol.fr:/src/src/sys/compile/CAERDONN2 i386
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970414143336.59431>