From b95b9aadfc8c43a7370b1d778c5ffc0942a14035 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 Sep 2015 09:33:17 +0200 Subject: [PATCH] Rename new_session to session_create --- src/http_command.c | 2 +- src/session.c | 4 ++-- src/session.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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); -- 1.7.10.4