aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c14
1 files changed, 13 insertions, 1 deletions
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 */
{