aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/linked-list.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-23 16:03:40 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-23 16:03:40 +0200
commit88c7815d5fa18f51ed4ac318155822b8a688fdf5 (patch)
treec7f36d3b44fdb1ecc13dcbd8400c1c46ee029ac8 /src/libmdsserver/linked-list.h
parentadd value remapping to hash table unmarshaling (diff)
downloadmds-88c7815d5fa18f51ed4ac318155822b8a688fdf5.tar.gz
mds-88c7815d5fa18f51ed4ac318155822b8a688fdf5.tar.bz2
mds-88c7815d5fa18f51ed4ac318155822b8a688fdf5.tar.xz
m fixes + store client information in a hash table and in a linked list
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/linked-list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmdsserver/linked-list.h b/src/libmdsserver/linked-list.h
index 3427fa6..e99040f 100644
--- a/src/libmdsserver/linked-list.h
+++ b/src/libmdsserver/linked-list.h
@@ -227,7 +227,7 @@ void linked_list_remove(linked_list_t* restrict this, ssize_t node);
* `LINKED_LIST_UNUSED` on error, `errno` will be set accordingly
*/
#define linked_list_insert_end(this, value) \
- (linked_list_insert_before(this, value, this->edge))
+ (linked_list_insert_before((this), (value), (this)->edge))
/**
* Remove the node at the end of the list
@@ -236,7 +236,7 @@ void linked_list_remove(linked_list_t* restrict this, ssize_t node);
* @return :ssize_t The node that has been removed
*/
#define linked_list_remove_end(this) \
- (linked_list_remove_before(this, this->edge))
+ (linked_list_remove_before((this), (this)->edge))
/**
* Calculate the buffer size need to marshal a linked list