2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afsconfig.h>
11 #include <afs/param.h>
20 #include <afs/errmap_nt.h>
21 #include <afs/afsutil.h>
22 #include <WINNT/afssw.h>
32 AddToList(struct filestr **ah, char *aname)
34 register struct filestr *tf;
35 tf = (struct filestr *)malloc(sizeof(struct filestr));
38 tf->name = (char *)malloc(strlen(aname) + 1);
39 strcpy(tf->name, aname);
44 ZapList(struct filestr **ah)
46 register struct filestr *tf, *nf;
47 for (tf = *ah; tf; tf = nf) {
48 nf = tf->next; /* save before freeing */