Compile with DIAGNOSTIC
This commit is contained in:
parent
b513fb7c0a
commit
0e61db23eb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getgroupmembership.c,v 1.2 2006/10/15 16:14:46 christos Exp $ */
|
||||
/* $NetBSD: getgroupmembership.c,v 1.3 2007/02/03 16:17:15 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004-2005 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getgroupmembership.c,v 1.2 2006/10/15 16:14:46 christos Exp $");
|
||||
__RCSID("$NetBSD: getgroupmembership.c,v 1.3 2007/02/03 16:17:15 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/*
|
||||
@ -83,7 +83,8 @@ __gr_addgid(gid_t gid, gid_t *groups, int maxgrp, int *groupc)
|
||||
{
|
||||
int ret, dupc;
|
||||
|
||||
_DIAGASSERT(grpcnt != NULL);
|
||||
_DIAGASSERT(groupc != NULL);
|
||||
_DIAGASSERT(groups != NULL);
|
||||
|
||||
/* skip duplicates */
|
||||
for (dupc = 0; dupc < MIN(maxgrp, *groupc); dupc++) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getnetpath.c,v 1.11 2007/01/17 23:24:22 hubertf Exp $ */
|
||||
/* $NetBSD: getnetpath.c,v 1.12 2007/02/03 16:20:08 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
@ -35,7 +35,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)getnetpath.c 1.11 91/12/19 SMI";
|
||||
#else
|
||||
__RCSID("$NetBSD: getnetpath.c,v 1.11 2007/01/17 23:24:22 hubertf Exp $");
|
||||
__RCSID("$NetBSD: getnetpath.c,v 1.12 2007/02/03 16:20:08 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -241,16 +241,16 @@ endnetpath(handlep)
|
||||
*/
|
||||
|
||||
char *
|
||||
_get_next_token(npp, token)
|
||||
char *npp; /* string */
|
||||
int token; /* char to parse string for */
|
||||
_get_next_token(
|
||||
char *npp, /* string */
|
||||
int token /* char to parse string for */
|
||||
)
|
||||
{
|
||||
char *cp; /* char pointer */
|
||||
char *np; /* netpath pointer */
|
||||
char *ep; /* escape pointer */
|
||||
|
||||
_DIAGASSERT(npp != NULL);
|
||||
_DIAGASSERT(token != NULL);
|
||||
|
||||
if ((cp = strchr(npp, token)) == NULL)
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user