From owner-freebsd-hackers Tue Mar 21 20:12:05 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA18878 for hackers-outgoing; Tue, 21 Mar 1995 20:12:05 -0800 Received: from fgwmail.fujitsu.co.jp (fgwmail.fujitsu.co.jp [164.71.1.133]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA18872 for ; Tue, 21 Mar 1995 20:11:46 -0800 Received: from fdmmail.fujitsu.co.jp by fgwmail.fujitsu.co.jp (8.6.9+2.4W/3.3W5-MX941209-Fujitsu Mail Gateway) id NAA14638; Wed, 22 Mar 1995 13:11:31 +0900 Received: from fdm.fujitsu.co.jp by fdmmail.fujitsu.co.jp (8.6.9+2.4W/3.3W5-MX950127-Fujitsu Domain Mail Master) id NAA09743; Wed, 22 Mar 1995 13:11:29 +0900 Received: from sysrap by fdm.fujitsu.co.jp (5.65/6.4J.6) id AA01754; Wed, 22 Mar 95 13:11:29 +0900 Received: from seki.sysrap.cs.fujitsu.co.jp by spad.sysrap.cs.fujitsu.co.jp with smtp (Smail3.1.28.1 #1) id m0rrHsS-000DU5C; Wed, 22 Mar 95 13:18 JST Date: Wed, 22 Mar 95 13:06:58 JST From: Masahiro SEKIGUCHI Message-Id: <9503220406.AA11474@seki.sysrap.cs.fujitsu.co.jp> To: freebsd-hackers@FreeBSD.org Subject: Re: gcc include files References: <199503220221.WAA08065@Snoopy.UCIS.Dal.Ca> Sender: hackers-owner@FreeBSD.org Precedence: bulk digdon@Snoopy.UCIS.Dal.Ca(Mike Digdon): >In stdio.h, line 244, sys_errlist is defined as: >extern __const char *__const sys_errlist[]; >In screen.c, it is defined as: >extern char *sys_errlist[]; >What is this __const? It tells you that you cannot modify strings pointed to by the array sys_errlist[]. >Why >is it there? Because you *really* cannot modify them. I guess someone thought the fact sould be explicitly stated. >Why is it breaking? The latter declaration asks the compiler to allow you to modify the strings. It contradicts the former. You can just delete the line from screen.c to compile it.