From d4723575d346e7bf8973515d6d68ec56c299dd5d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 25 Apr 1996 04:10:57 +0000 Subject: (idvec_free_contents): Declare it. --- libshouldbeinlibc/idvec.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libshouldbeinlibc/idvec.h b/libshouldbeinlibc/idvec.h index 4df0929a..8e99d433 100644 --- a/libshouldbeinlibc/idvec.h +++ b/libshouldbeinlibc/idvec.h @@ -1,6 +1,6 @@ /* Routines for vectors of uids/gids - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Miles Bader @@ -25,19 +25,22 @@ #include #include -struct idvec +struct idvec { uid_t *ids; unsigned num, alloced; }; /* Return a new, empty, idvec, or NULL if there wasn't enough memory. */ -struct idvec * make_idvec (); +struct idvec *make_idvec (void); -/* Free's IDVEC, but not the storage pointed to by the IDS field. */ +/* Free the storage pointed to by IDVEC->ids. */ +void idvec_free_contents (struct idvec *idvec); + +/* Free IDVEC, but not the storage pointed to by the IDS field. */ void idvec_free_wrapper (struct idvec *idvec); -/* Frees IDVEC and any storage associated with it. */ +/* Free IDVEC and any storage associated with it. */ void idvec_free (struct idvec *idvec); /* Mark IDVEC as not containing any ids. */ -- cgit v1.2.3