projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ee8b7
)
quiet compiler warning about ptr->int conversion
author
Marko Kreen
<markokr@gmail.com>
Tue, 30 Sep 2008 10:17:13 +0000
(10:17 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 30 Sep 2008 10:17:13 +0000
(10:17 +0000)
include/list.h
patch
|
blob
|
blame
|
history
diff --git
a/include/list.h
b/include/list.h
index ed3ec6f619e310a3d8810619887fce364ad6043f..b8571ed2ec1f4d755be8278ae3363e7bfc572cb9 100644
(file)
--- a/
include/list.h
+++ b/
include/list.h
@@
-32,7
+32,7
@@
/* give offset of a field inside struct */
#ifndef offsetof
-#define offsetof(type, field) ((unsigned)&(((type *)0)->field))
+#define offsetof(type, field) ((unsigned
long
)&(((type *)0)->field))
#endif
/* given pointer to field inside struct, return pointer to struct */