Rename func termlist->get_termlist_score
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 May 2011 07:44:58 +0000 (09:44 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 May 2011 07:44:58 +0000 (09:44 +0200)
src/http_command.c
src/session.c
src/session.h

index e171cc9..90b6cd6 100644 (file)
@@ -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) {
index 0453377..545f0fc 100644 (file)
@@ -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;
index fdecbc4..179ade2 100644 (file)
@@ -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);