aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-03-14 06:42:53 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-03-14 06:42:53 +0000
commitff0976ad08b3dda64a55daf19892367e1367cf22 (patch)
tree108e1cae4ad4acbc17c069b975054ecfc47a52a4 /uid.c
parentf34b0b77094710429baf281a4f567aaff526a756 (diff)
downloadfetchmail-ff0976ad08b3dda64a55daf19892367e1367cf22.tar.gz
fetchmail-ff0976ad08b3dda64a55daf19892367e1367cf22.tar.bz2
fetchmail-ff0976ad08b3dda64a55daf19892367e1367cf22.zip
Fix a Debian bug.
svn path=/trunk/; revision=2827
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/uid.c b/uid.c
index ce875956..453274b7 100644
--- a/uid.c
+++ b/uid.c
@@ -384,6 +384,21 @@ int delete_str(struct idlist **idl, int num)
return(0);
}
+struct idlist *copy_str_list(struct idlist *idl)
+/* copy the given UID list */
+{
+ struct idlist *newnode ;
+
+ if (idl == (struct idlist *)NULL)
+ return(NULL);
+ else
+ {
+ newnode = (struct idlist *)xmalloc(sizeof(struct idlist));
+ newnode->next = copy_str_list(idl->next);
+ return(newnode);
+ }
+}
+
void append_str_list(struct idlist **idl, struct idlist **nidl)
/* append nidl to idl (does not copy *) */
{