/* -*-c-*-
*
- * $Id: acl.c,v 1.1 1999/07/01 08:56:23 mdw Exp $
+ * $Id: acl.c,v 1.3 1999/07/27 18:30:53 mdw Exp $
*
* Access control list handling
*
- * (c) 1999 Mark Wooding
+ * (c) 1999 Straylight/Edgeware
*/
/*----- Licensing notice --------------------------------------------------*
/*----- Revision history --------------------------------------------------*
*
* $Log: acl.c,v $
- * Revision 1.1 1999/07/01 08:56:23 mdw
- * Initial revision
+ * Revision 1.3 1999/07/27 18:30:53 mdw
+ * Various minor portability fixes.
+ *
+ * Revision 1.2 1999/07/26 23:28:15 mdw
+ * Minor modifications for new design.
+ *
+ * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
+ * Initial revision.
*
*/
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
}
}
+/* --- @acl_free@ --- *
+ *
+ * Arguments: @acl_entry *a@ = pointer to a list of ACLs
+ *
+ * Returns: ---
+ *
+ * Use: Frees all of the memory used by an ACL.
+ */
+
+void acl_free(acl_entry *a)
+{
+ while (a) {
+ acl_entry *aa = a;
+ a = a->next;
+ DESTROY(aa);
+ }
+}
+
/* --- @acl_add@ --- *
*
* Arguments: @acl_entry ***a@ = address of pointer to list tail