Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-session: Fix a typo
[src/app-framework-binder.git]
/
src
/
afb-session.c
diff --git
a/src/afb-session.c
b/src/afb-session.c
index
6b6ad63
..
fd8e388
100644
(file)
--- a/
src/afb-session.c
+++ b/
src/afb-session.c
@@
-33,8
+33,8
@@
#define SIZEUUID 37
#define HEADCOUNT 16
#define SIZEUUID 37
#define HEADCOUNT 16
-#define COOK
EY
COUNT 8
-#define COOK
EYMASK (COOKEY
COUNT - 1)
+#define COOK
IE
COUNT 8
+#define COOK
IEMASK (COOKIE
COUNT - 1)
#define _MAXEXP_ ((time_t)(~(time_t)0))
#define _MAXEXP2_ ((time_t)((((unsigned long long)_MAXEXP_) >> 1)))
#define _MAXEXP_ ((time_t)(~(time_t)0))
#define _MAXEXP2_ ((time_t)((((unsigned long long)_MAXEXP_) >> 1)))
@@
-56,7
+56,7
@@
struct afb_session
int timeout;
time_t expiration; // expiration time of the token
pthread_mutex_t mutex;
int timeout;
time_t expiration; // expiration time of the token
pthread_mutex_t mutex;
- struct cookie *cookies[COOK
EY
COUNT];
+ struct cookie *cookies[COOK
IE
COUNT];
char autoclose;
char idx;
char uuid[SIZEUUID]; // long term authentication of remote client
char autoclose;
char idx;
char uuid[SIZEUUID]; // long term authentication of remote client
@@
-98,7
+98,7
@@
static void close_session(struct afb_session *session)
struct cookie *cookie;
/* free cookies */
struct cookie *cookie;
/* free cookies */
- for (idx = 0 ; idx < COOK
EY
COUNT ; idx++) {
+ for (idx = 0 ; idx < COOK
IE
COUNT ; idx++) {
while ((cookie = session->cookies[idx])) {
session->cookies[idx] = cookie->next;
if (cookie->freecb != NULL)
while ((cookie = session->cookies[idx])) {
session->cookies[idx] = cookie->next;
if (cookie->freecb != NULL)
@@
-458,7
+458,7
@@
static int cookeyidx(const void *key)
{
intptr_t x = (intptr_t)key;
unsigned r = (unsigned)((x >> 5) ^ (x >> 15));
{
intptr_t x = (intptr_t)key;
unsigned r = (unsigned)((x >> 5) ^ (x >> 15));
- return r & COOK
EY
MASK;
+ return r & COOK
IE
MASK;
}
/**
}
/**