avoid assignment of a read only location that lint does not pick, but gcc does.

This commit is contained in:
christos 1998-11-13 08:25:17 +00:00
parent 6ff594779a
commit 920a51d98f
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getcap.c,v 1.24 1998/11/12 16:25:21 christos Exp $ */
/* $NetBSD: getcap.c,v 1.25 1998/11/13 08:25:17 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94";
#else
__RCSID("$NetBSD: getcap.c,v 1.24 1998/11/12 16:25:21 christos Exp $");
__RCSID("$NetBSD: getcap.c,v 1.25 1998/11/13 08:25:17 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -591,7 +591,7 @@ cdbget(capdbp, bp, name)
char **bp;
const char *name;
{
const DBT key;
DBT key;
DBT data;
/* LINTED key is not modified */

View File

@ -1,4 +1,4 @@
/* $NetBSD: getpwent.c,v 1.30 1998/11/12 16:38:49 christos Exp $ */
/* $NetBSD: getpwent.c,v 1.31 1998/11/13 08:25:17 christos Exp $ */
/*
* Copyright (c) 1988, 1993
@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)getpwent.c 8.2 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: getpwent.c,v 1.30 1998/11/12 16:38:49 christos Exp $");
__RCSID("$NetBSD: getpwent.c,v 1.31 1998/11/13 08:25:17 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -152,7 +152,7 @@ static int
__ypexclude_is(name)
const char *name;
{
const DBT key;
DBT key;
DBT data;
if(__ypexclude == (DB *)NULL)