Subject: Re: port-sparc64/32142: compile error in /usr/src/usr.bin/cap_mkdb/cap_mkdb.c
To: None <gnats-bugs@netbsd.org, port-sparc64-maintainer@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 11/22/2005 17:35:58
On Nov 22, 3:37pm, johan@ewranglers.com (johan@ewranglers.com) wrote:
-- Subject: port-sparc64/32142: compile error in /usr/src/usr.bin/cap_mkdb/ca
| >Number: 32142
| >Category: port-sparc64
| >Synopsis: compile error in /usr/src/usr.bin/cap_mkdb/cap_mkdb.c
| >Confidential: no
| >Severity: critical
| >Priority: high
| >Responsible: port-sparc64-maintainer
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Tue Nov 22 15:37:00 +0000 2005
| >Originator: Johan A. van Zanten
| >Release: NetBSD 2.0.2_STABLE
| >Organization:
| dis-
| >Environment:
| System: NetBSD sarasvati 2.0.2_STABLE NetBSD 2.0.2_STABLE (PARATHA) #1: Sun Apr 17 18:26:19 CDT 2005 johan@sarasvati:/local/NetBSD/src/NetBSD-2.0/src/sys/arch/alpha/compile/obj.alpha/PARATHA alpha
|
Does this patch fix the problem?
Thanks,
christos
Index: cap_mkdb.c
===================================================================
RCS file: /cvsroot/src/usr.bin/cap_mkdb/cap_mkdb.c,v
retrieving revision 1.22
diff -u -u -r1.22 cap_mkdb.c
--- cap_mkdb.c 13 Apr 2005 04:50:22 -0000 1.22
+++ cap_mkdb.c 22 Nov 2005 16:37:52 -0000
@@ -55,7 +55,7 @@
#include <unistd.h>
#include <ctype.h>
-static void db_build(const char **);
+static void db_build(char **);
static void dounlink(void);
static void usage(void) __attribute__((__unused__));
static int count_records(char **);
@@ -135,7 +135,7 @@
if (atexit(dounlink))
err(1, "atexit");
- db_build((const char **)argv);
+ db_build(argv);
if (capdbp->close(capdbp) < 0)
err(1, "%s", capname);
@@ -167,7 +167,7 @@
* details above.
*/
static void
-db_build(const char **ifiles)
+db_build(char **ifiles)
{
DBT key, data;
recno_t reccnt;