From 93aa31ffc1624a9bc6a985a4c5679bac2ceb5e9a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 17 Mar 1998 18:03:58 +0000 Subject: Dick van den Burg's patch. svn path=/trunk/; revision=1705 --- uid.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'uid.c') diff --git a/uid.c b/uid.c index ecc6b0b4..ac49a013 100644 --- a/uid.c +++ b/uid.c @@ -93,7 +93,7 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile) strcasecmp(host, ctl->server.truename) == 0 && strcasecmp(user, ctl->remotename) == 0) { - save_str(&ctl->oldsaved, id, UID_SEEN); + save_str(&ctl->oldsaved, id, UID_UNSEEN); break; } } @@ -207,6 +207,18 @@ int str_nr_last_in_list( struct idlist **idl, const char *str) return ret; } +void str_set_mark( struct idlist **idl, const char *str, const flag val) +/* update the mark on an of an id to given value */ +{ + int nr; + struct idlist *walk; + if (!str) + return; + for(walk = *idl, nr = 0; walk; nr ++, walk = walk->next) + if (strcasecmp(str, walk->id) == 0) + walk->val.status.mark = val; +} + int count_list( struct idlist **idl) /* count the number of elements in the list */ { -- cgit v1.2.3