aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-28 18:18:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-28 18:18:00 +0000
commit5f4ca3c2d6db469677d06db286b16b9f3b84123c (patch)
tree8cdf1de1d808e77052ebfedfb81c68c4a469b079 /rcfile_y.y
parent09006c25d399ff2080c0e8660d0d95ff3cd25455 (diff)
downloadfetchmail-5f4ca3c2d6db469677d06db286b16b9f3b84123c.tar.gz
fetchmail-5f4ca3c2d6db469677d06db286b16b9f3b84123c.tar.bz2
fetchmail-5f4ca3c2d6db469677d06db286b16b9f3b84123c.zip
Change name of string-saver functions.
svn path=/trunk/; revision=584
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y16
1 files changed, 8 insertions, 8 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 0aab45fa..725a7587 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -79,21 +79,21 @@ statement : SET BATCHLIMIT MAP NUMBER {batchlimit = $4;}
;
define_server : POLL STRING {current.servernames = (struct idlist *)NULL;
- save_uid(&current.servernames, -1, $2);
+ save_str(&current.servernames, -1, $2);
current.skip = FALSE;}
| SKIP STRING {current.servernames = (struct idlist *)NULL;
- save_uid(&current.servernames, -1, $2);
+ save_str(&current.servernames, -1, $2);
current.skip = TRUE;}
| DEFAULTS {current.servernames = (struct idlist *)NULL;
- save_uid(&current.servernames, -1,"defaults");}
+ save_str(&current.servernames, -1,"defaults");}
;
serverspecs : /* EMPTY */
| serverspecs serv_option
;
-alias_list : STRING {save_uid(&current.servernames, -1, $1);}
- | alias_list STRING {save_uid(&current.servernames, -1, $2);}
+alias_list : STRING {save_str(&current.servernames, -1, $1);}
+ | alias_list STRING {save_str(&current.servernames, -1, $2);}
;
serv_option : AKA alias_list
@@ -149,9 +149,9 @@ mapping_list : mapping
;
mapping : STRING
- {save_id_pair(&current.localnames, $1, NULL);}
+ {save_str_pair(&current.localnames, $1, NULL);}
| STRING MAP STRING
- {save_id_pair(&current.localnames, $1, $3);}
+ {save_str_pair(&current.localnames, $1, $3);}
;
user_option : TO localnames HERE
@@ -336,7 +336,7 @@ static void prc_register(void)
void optmerge(struct query *h2, struct query *h1)
/* merge two options records; empty fields in h2 are filled in from h1 */
{
- append_uid_list(&h2->localnames, &h1->localnames);
+ append_str_list(&h2->localnames, &h1->localnames);
#define STR_MERGE(fld, len) if (*(h2->fld) == '\0') strcpy(h2->fld, h1->fld)
STR_MERGE(remotename, USERNAMELEN);