From 22cc5cd1bd9a791d80c8b36874dcb7856ce032b2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 18 May 2011 09:44:58 +0200 Subject: [PATCH] Rename func termlist->get_termlist_score --- src/http_command.c | 2 +- src/session.c | 3 ++- src/session.h | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/http_command.c b/src/http_command.c index e171cc9..90b6cd6 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -582,7 +582,7 @@ static void cmd_termlist(struct http_channel *c) } else { - p = termlist(s->psession, tname, &len); + p = get_termlist_score(s->psession, tname, &len); if (p && len) wrbuf_printf(debug_log, " %s: %d", tname, len); if (p) { diff --git a/src/session.c b/src/session.c index 0453377..545f0fc 100644 --- a/src/session.c +++ b/src/session.c @@ -864,7 +864,8 @@ struct hitsbytarget *hitsbytarget(struct session *se, int *count, NMEM nmem) return res; } -struct termlist_score **termlist(struct session *se, const char *name, int *num) +struct termlist_score **get_termlist_score(struct session *se, + const char *name, int *num) { int i; struct termlist_score **tl = 0; diff --git a/src/session.h b/src/session.h index fdecbc4..179ade2 100644 --- a/src/session.h +++ b/src/session.h @@ -166,7 +166,8 @@ struct record_cluster *show_single_start(struct session *s, const char *id, struct record_cluster **prev_r, struct record_cluster **next_r); void show_single_stop(struct session *s, struct record_cluster *rec); -struct termlist_score **termlist(struct session *s, const char *name, int *num); +struct termlist_score **get_termlist_score(struct session *s, + const char *name, int *num); int session_set_watch(struct session *s, int what, session_watchfun fun, void *data, struct http_channel *c); int session_active_clients(struct session *s); int session_is_preferred_clients_ready(struct session *s); -- 1.7.10.4