summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-25 04:10:57 +0000
committerRoland McGrath <roland@gnu.org>1996-04-25 04:10:57 +0000
commitd4723575d346e7bf8973515d6d68ec56c299dd5d (patch)
tree7416223f60a819841dce325cae1f5ee26a75d677
parent146a9ab807de64461e87fd48d2eb089efc8c2123 (diff)
(idvec_free_contents): Declare it.
-rw-r--r--libshouldbeinlibc/idvec.h13
1 files 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 <miles@gnu.ai.mit.edu>
@@ -25,19 +25,22 @@
#include <errno.h>
#include <hurd/hurd_types.h>
-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. */