diff options
author | Jorge Boncompte <jbonor@gmail.com> | 2017-08-08 20:32:30 +0200 |
---|---|---|
committer | Jorge Boncompte <jbonor@gmail.com> | 2017-08-17 17:47:07 +0200 |
commit | f104f6c1a62c92a4420e1d99abb336d566c1ff51 (patch) | |
tree | b3eceba4d39ae56d9e8eff27e4a2bb16f1024b82 /lib/freebsd-queue.h | |
parent | lib: standardize use of queue.h (diff) | |
download | frr-f104f6c1a62c92a4420e1d99abb336d566c1ff51.tar.xz frr-f104f6c1a62c92a4420e1d99abb336d566c1ff51.zip |
lib: cleanup the work queue implementation
Convert the work queue implementation to not use the generic linked list
to mantain the item list and use instead a simple queue from queue.h that
does not allocate memory for each node.
Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
Diffstat (limited to 'lib/freebsd-queue.h')
-rw-r--r-- | lib/freebsd-queue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freebsd-queue.h b/lib/freebsd-queue.h index 658b602ba..d198f5674 100644 --- a/lib/freebsd-queue.h +++ b/lib/freebsd-queue.h @@ -302,7 +302,7 @@ struct qm_trace { (STAILQ_EMPTY((head)) \ ? NULL \ : ((struct type *)(void *)((char *)((head)->stqh_last) \ - - __offsetof(struct type, \ + - offsetof(struct type, \ field)))) #define STAILQ_NEXT(elm, field) ((elm)->field.stqe_next) |