diff options
| author | Eric S. Raymond <esr@thyrsus.com> | 2000-03-14 06:42:53 +0000 | 
|---|---|---|
| committer | Eric S. Raymond <esr@thyrsus.com> | 2000-03-14 06:42:53 +0000 | 
| commit | ff0976ad08b3dda64a55daf19892367e1367cf22 (patch) | |
| tree | 108e1cae4ad4acbc17c069b975054ecfc47a52a4 /uid.c | |
| parent | f34b0b77094710429baf281a4f567aaff526a756 (diff) | |
| download | fetchmail-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.c | 15 | 
1 files changed, 15 insertions, 0 deletions
@@ -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 *) */  {  | 
