From owner-freebsd-hackers Fri Jun 8 11:16:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id E78D237B403; Fri, 8 Jun 2001 11:16:08 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.3) with ESMTP id f58IQ4r01256; Fri, 8 Jun 2001 11:26:04 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200106081826.f58IQ4r01256@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Thomas David Rivers Cc: jhb@FreeBSD.ORG, roam@orbitel.bg, hackers@FreeBSD.ORG Subject: Re: free() and const warnings In-reply-to: Your message of "Fri, 08 Jun 2001 06:55:50 EDT." <200106081055.GAA49069@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 08 Jun 2001 11:26:04 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Since some strings are non-constant (the are allocated) - I believe > the `const' qualifier in the structure declaration is incorrect. 'const' just means "I will not be modifying this"; it's a way for a function prototype to constrain the function's implementation. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message