From owner-freebsd-current Mon Apr 14 05:34:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA08631 for current-outgoing; Mon, 14 Apr 1997 05:34:08 -0700 (PDT) Received: from atena.eurocontrol.fr (atena.uneec.eurocontrol.fr [147.196.69.10]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id FAA08569 for ; Mon, 14 Apr 1997 05:33:58 -0700 (PDT) Received: by atena.eurocontrol.fr; (5.65v3.2/1.3/10May95) id AA20393; Mon, 14 Apr 1997 14:33:36 +0200 Received: (from roberto@localhost) by caerdonn.eurocontrol.fr (8.8.6.Beta0/caerdonn-1.1) id OAA13185; Mon, 14 Apr 1997 14:33:36 +0200 (CEST) Message-Id: <19970414143336.59431@caerdonn.eurocontrol.fr> Date: Mon, 14 Apr 1997 14:33:36 +0200 From: Ollivier Robert To: "FreeBSD Current Users' list" Subject: problem with libc/sys/truncate.c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.67 X-Operating-System: FreeBSD 3.0-CURRENT Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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