projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/easytimer-v2: Generate combined .ihx file for seeed testing
[fw/altos]
/
src
/
kernel
/
ao_list.h
diff --git
a/src/kernel/ao_list.h
b/src/kernel/ao_list.h
index 8a6fa4d92eb90571ec949f3db17a02215b9e90df..45a3df5b0a9172d3870e78d8c5ef5363f88cc400 100644
(file)
--- a/
src/kernel/ao_list.h
+++ b/
src/kernel/ao_list.h
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-137,7
+138,7
@@
ao_list_is_empty(struct ao_list *head)
* @return A pointer to the data struct containing the list head.
*/
#define ao_container_of(ptr, type, member) \
* @return A pointer to the data struct containing the list head.
*/
#define ao_container_of(ptr, type, member) \
- ((type *)((
char *)(ptr) - offsetof(type, member
)))
+ ((type *)((
void *) ((char *)(ptr) - offsetof(type, member)
)))
/**
* Alias of ao_container_of
/**
* Alias of ao_container_of