inline revive_cookie()

This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-28 10:48:27 +02:00
parent 9eb68a381a
commit 3dd67c3f19
2 changed files with 4 additions and 6 deletions

View File

@@ -263,11 +263,6 @@ struct cookie_entry_st *find_cookie_entry(struct cookie_entry_db_st* db, void *c
return e;
}
void revive_cookie(struct cookie_entry_st * e)
{
e->expiration = -1;
}
struct cookie_entry_st *new_cookie_entry(struct cookie_entry_db_st* db, proc_st *proc, void *cookie, unsigned cookie_size)
{
struct cookie_entry_st *t;

View File

@@ -43,6 +43,9 @@ void expire_cookies(struct cookie_entry_db_st* db);
struct cookie_entry_st *new_cookie_entry(struct cookie_entry_db_st* db, proc_st *proc, void *cookie, unsigned cookie_size);
struct cookie_entry_st *find_cookie_entry(struct cookie_entry_db_st* db, void *cookie, unsigned cookie_len);
void revive_cookie(struct cookie_entry_st *);
inline static void revive_cookie(struct cookie_entry_st * e)
{
e->expiration = -1;
}
#endif