You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/12/03 19:50:15 UTC

incubator-mynewt-larva git commit: __offsetof -> offsetof.

Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 0e4910d17 -> 8598e84fb


__offsetof -> offsetof.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/8598e84f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/8598e84f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/8598e84f

Branch: refs/heads/master
Commit: 8598e84fbb6be34b53d19bc9355114ea5edba74c
Parents: 0e4910d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Dec 3 10:49:59 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Dec 3 10:49:59 2015 -0800

----------------------------------------------------------------------
 libs/os/include/os/queue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/8598e84f/libs/os/include/os/queue.h
----------------------------------------------------------------------
diff --git a/libs/os/include/os/queue.h b/libs/os/include/os/queue.h
index 39826dd..4f5cacf 100755
--- a/libs/os/include/os/queue.h
+++ b/libs/os/include/os/queue.h
@@ -242,7 +242,7 @@ struct {								\
 	(STAILQ_EMPTY(head) ?						\
 		NULL :							\
 	        ((struct type *)					\
-		((char *)((head)->stqh_last) - __offsetof(struct type, field))))
+		((char *)((head)->stqh_last) - offsetof(struct type, field))))
 
 #define	STAILQ_NEXT(elm, field)	((elm)->field.stqe_next)