Commit 5c615095 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Rename flush_old_sources to expire_sources.

parent fab068cd
...@@ -69,7 +69,7 @@ find_source(const unsigned char *id, const unsigned char *p, unsigned char plen, ...@@ -69,7 +69,7 @@ find_source(const unsigned char *id, const unsigned char *p, unsigned char plen,
if(!src) { if(!src) {
if(numsrcs >= MAXSRCS) { if(numsrcs >= MAXSRCS) {
rc = flush_old_sources(); rc = expire_sources();
if(rc) if(rc)
goto again; goto again;
fprintf(stderr, "Too many sources.\n"); fprintf(stderr, "Too many sources.\n");
...@@ -157,7 +157,7 @@ update_source(struct source *src, ...@@ -157,7 +157,7 @@ update_source(struct source *src,
} }
int int
flush_old_sources() expire_sources()
{ {
int i, changed, rc; int i, changed, rc;
......
...@@ -43,4 +43,4 @@ struct source *find_recent_source(const unsigned char *p, ...@@ -43,4 +43,4 @@ struct source *find_recent_source(const unsigned char *p,
unsigned char plen); unsigned char plen);
void update_source(struct source *src, void update_source(struct source *src,
unsigned short seqno, unsigned short metric); unsigned short seqno, unsigned short metric);
int flush_old_sources(void); int expire_sources(void);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment