From: Adam Dickmeiss Date: Thu, 3 Sep 2015 07:33:17 +0000 (+0200) Subject: Rename new_session to session_create X-Git-Tag: v1.12.3~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b95b9aadfc8c43a7370b1d778c5ffc0942a14035;p=pazpar2-moved-to-github.git Rename new_session to session_create --- diff --git a/src/http_command.c b/src/http_command.c index f109e16..731a635 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -165,7 +165,7 @@ struct http_session *http_session_create(struct conf_service *service, char tmp_str[50]; sprintf(tmp_str, "session#%u", sesid); - r->psession = new_session(nmem, service, sesid); + r->psession = session_create(nmem, service, sesid); r->session_id = sesid; r->timestamp = 0; r->nmem = nmem; diff --git a/src/session.c b/src/session.c index a294c8e..02c0eb1 100644 --- a/src/session.c +++ b/src/session.c @@ -1079,8 +1079,8 @@ size_t session_get_memory_status(struct session *session) { } -struct session *new_session(NMEM nmem, struct conf_service *service, - unsigned session_id) +struct session *session_create(NMEM nmem, struct conf_service *service, + unsigned session_id) { int i; struct session *session = nmem_malloc(nmem, sizeof(*session)); diff --git a/src/session.h b/src/session.h index 07972be..84e94d2 100644 --- a/src/session.h +++ b/src/session.h @@ -148,8 +148,8 @@ struct hitsbytarget { }; struct hitsbytarget *get_hitsbytarget(struct session *s, int *count, NMEM nmem); -struct session *new_session(NMEM nmem, struct conf_service *service, - unsigned session_id); +struct session *session_create(NMEM nmem, struct conf_service *service, + unsigned session_id); int sessions_count(void); void session_destroy(struct session *s); void session_init_databases(struct session *s);