summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2015-12-31 11:50:32 -0500
committerGravatar Adam Chlipala <adamc@csail.mit.edu>2015-12-31 11:50:32 -0500
commit51fabece10b4f35fb8f8490ff1fd97ca68e7ad51 (patch)
tree1fb65a94f29a8a061cbd57d3dcd6052766db4367
parent4d1dca73055bf5c488bc16a15c04cc886db46185 (diff)
parente3a98699c6736846c3365fb6a22146d3481a10d0 (diff)
Merge pull request #5 from vizziv/master
Remove duplicate typedef declarations.
-rw-r--r--include/urweb/types_cpp.h7
-rw-r--r--src/c/urweb.c7
2 files changed, 6 insertions, 8 deletions
diff --git a/include/urweb/types_cpp.h b/include/urweb/types_cpp.h
index ce0f2825..77e4c611 100644
--- a/include/urweb/types_cpp.h
+++ b/include/urweb/types_cpp.h
@@ -130,7 +130,12 @@ typedef struct uw_Sqlcache_Value {
unsigned long timeValid;
} uw_Sqlcache_Value;
-typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry;
+typedef struct uw_Sqlcache_Entry {
+ char *key;
+ uw_Sqlcache_Value *value;
+ unsigned long timeInvalid;
+ UT_hash_handle hh;
+} uw_Sqlcache_Entry;
typedef struct uw_Sqlcache_Cache {
pthread_rwlock_t lockOut;
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 50aac5e8..c057688c 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -4562,13 +4562,6 @@ void uw_set_remoteSock(uw_context ctx, int sock) {
// Sqlcache
-typedef struct uw_Sqlcache_Entry {
- char *key;
- uw_Sqlcache_Value *value;
- unsigned long timeInvalid;
- UT_hash_handle hh;
-} uw_Sqlcache_Entry;
-
static void uw_Sqlcache_freeValue(uw_Sqlcache_Value *value) {
if (value) {
free(value->result);