From dan@obluda.cz  Tue Jun 25 18:20:45 2002
Return-Path: <dan@obluda.cz>
Received: from xkulesh.vol.cz (xkulesh.vol.cz [195.250.154.106])
	by hub.freebsd.org (Postfix) with ESMTP id 9CDB337B404
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Jun 2002 18:20:33 -0700 (PDT)
Received: from obluda.cz (localhost [127.0.0.1])
	by xkulesh.vol.cz (8.12.3/8.12.3) with ESMTP id g5Q1KUTt057822
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Jun 2002 03:20:30 +0200 (CEST)
	(envelope-from dan@obluda.cz)
Received: (from root@localhost)
	by obluda.cz (8.12.4/8.12.4/Submit) id g5Q1FemO057794;
	Wed, 26 Jun 2002 03:15:40 +0200 (CEST)
Message-Id: <200206260115.g5Q1FemO057794@obluda.cz>
Date: Wed, 26 Jun 2002 03:15:40 +0200 (CEST)
From: Dan Lukes <dan@obluda.cz>
Reply-To: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: cleaning sbin/mount_cd9660 and sbin/mount_ext2fs code from warnings
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39867
>Category:       bin
>Synopsis:       cleaning sbin/mount_cd9660 and sbin/mount_ext2fs code from warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    johan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 25 18:30:01 PDT 2002
>Closed-Date:    Thu Nov 13 11:19:53 PST 2003
>Last-Modified:  Thu Nov 13 11:19:53 PST 2003
>Originator:     Dan Lukes
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Obludarium
>Environment:
System: FreeBSD xkulesh.vol.cz 4.6-STABLE FreeBSD
src/sbin/mount_cd9660/mount_cd9660.c,v 1.15.2.3 2001/03/14 12:05:01

>Description:

sbin/mount_cd9660/mount_cd9660.c:42: warning: `copyright' defined but not used
sbin/mount_ext2fs/mount_ext2fs.c:35: warning: `copyright' defined but not used
  'const' keyword resolve it

>How-To-Repeat:
        N/A
>Fix:

--- sbin/dump/mount_cd9660.c.ORIG Sun Mar 18 22:40:49 2001
+++ sbin/dump/mount_cd9660.c      Wed Jun 26 03:02:02 2002
@@ -39,7 +39,7 @@
  */
 #ifndef lint
-static char copyright[] =
+static const char copyright[] =
 "@(#) Copyright (c) 1992, 1993, 1994\n\
         The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */
--- mount_ext2fs.c.ORIG Sat Oct  9 13:54:09 1999
+++ mount_ext2fs.c      Wed Jun 26 03:05:13 2002
@@ -32,7 +32,7 @@
  */
 #ifndef lint
-static char copyright[] =
+static const char copyright[] =
 "@(#) Copyright (c) 1993, 1994\n\
        The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->johan 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sun Apr 13 09:22:11 PDT 2003 
Responsible-Changed-Why:  
I'll take a look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39867 
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Thu Nov 13 11:18:57 PST 2003 
State-Changed-Why:  
I've committed the mount_ext2fs part. 
The mount_cd9660 part was already fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39867 
>Unformatted:
