diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-20 03:08:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-20 03:08:40 +0000 |
commit | 3b1e076e2d58a753bf088a7bcdf442d1a387c0d0 (patch) | |
tree | 4baa74fd68e2eda0fb67536b7fa92e59f0c9ef4c /uid.c | |
parent | c7b25361c4990bf1a9bafd52e2ece4008f958819 (diff) | |
download | fetchmail-3b1e076e2d58a753bf088a7bcdf442d1a387c0d0.tar.gz fetchmail-3b1e076e2d58a753bf088a7bcdf442d1a387c0d0.tar.bz2 fetchmail-3b1e076e2d58a753bf088a7bcdf442d1a387c0d0.zip |
Caching via aka list.
svn path=/trunk/; revision=563
Diffstat (limited to 'uid.c')
-rw-r--r-- | uid.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -62,7 +62,7 @@ /* UIDs associated with un-queried hosts */ static struct idlist *scratchlist; -void initialize_saved_lists(struct query *hostlist, char *idfile) +void initialize_saved_lists(struct query *hostlist, const char *idfile) /* read file of saved IDs and attach to each host */ { int st; @@ -99,7 +99,7 @@ void initialize_saved_lists(struct query *hostlist, char *idfile) } } -struct idlist *save_uid(struct idlist **idl, int num, char *str) +struct idlist *save_uid(struct idlist **idl, int num, const char *str) /* save a number/UID pair on the given UID list */ { struct idlist *new; @@ -125,7 +125,7 @@ void free_uid_list(struct idlist **idl) *idl = (struct idlist *)NULL; } -void save_id_pair(struct idlist **idl, char *str1, char *str2) +void save_id_pair(struct idlist **idl, const char *str1, const char *str2) /* save an ID pair on the given list */ { struct idlist *new; @@ -155,7 +155,7 @@ void free_idpair_list(struct idlist **idl) } #endif -int uid_in_list(struct idlist **idl, char *str) +int uid_in_list(struct idlist **idl, const char *str) /* is a given ID in the given list? */ { if (*idl == (struct idlist *)NULL || str == (char *) NULL) @@ -177,7 +177,7 @@ char *uid_find(struct idlist **idl, int number) return(uid_find(&(*idl)->next, number)); } -char *idpair_find(struct idlist **idl, char *id) +char *idpair_find(struct idlist **idl, const char *id) /* return the id of the given number in the given list. */ { if (*idl == (struct idlist *) 0) @@ -226,7 +226,7 @@ void update_uid_lists(struct query *hostp) hostp->newsaved = (struct idlist *) NULL; } -void write_saved_lists(struct query *hostlist, char *idfile) +void write_saved_lists(struct query *hostlist, const char *idfile) /* perform end-of-run write of seen-messages list */ { int idcount; |