Fix a couple of missing UNCONST's that hit bmake.

This commit is contained in:
sjg 2003-07-14 21:13:48 +00:00
parent ed5bfb0707
commit 8186ad8ad9
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: arch.c,v 1.37 2003/07/14 18:19:11 christos Exp $ */
/* $NetBSD: arch.c,v 1.38 2003/07/14 21:13:48 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@ -39,14 +39,14 @@
*/
#ifdef MAKE_BOOTSTRAP
static char rcsid[] = "$NetBSD: arch.c,v 1.37 2003/07/14 18:19:11 christos Exp $";
static char rcsid[] = "$NetBSD: arch.c,v 1.38 2003/07/14 21:13:48 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94";
#else
__RCSID("$NetBSD: arch.c,v 1.37 2003/07/14 18:19:11 christos Exp $");
__RCSID("$NetBSD: arch.c,v 1.38 2003/07/14 21:13:48 sjg Exp $");
#endif
#endif /* not lint */
#endif
@ -1008,7 +1008,7 @@ Arch_TouchLib(GNode *gn)
struct ar_hdr arh; /* Header describing table of contents */
struct utimbuf times; /* Times for utime() call */
arch = ArchFindMember (gn->path, RANLIBMAG, &arh, "r+");
arch = ArchFindMember (gn->path, UNCONST(RANLIBMAG), &arh, "r+");
snprintf(arh.ar_date, sizeof(arh.ar_date), "%-12ld", (long) now);
if (arch != (FILE *) NULL) {
@ -1222,7 +1222,7 @@ Arch_LibOODate(GNode *gn)
struct ar_hdr *arhPtr; /* Header for __.SYMDEF */
int modTimeTOC; /* The table-of-contents's mod time */
arhPtr = ArchStatMember (gn->path, RANLIBMAG, FALSE);
arhPtr = ArchStatMember (gn->path, UNCONST(RANLIBMAG), FALSE);
if (arhPtr != (struct ar_hdr *)NULL) {
modTimeTOC = (int) strtol(arhPtr->ar_date, NULL, 10);