diff options
author | Alasdair Kergon <agk@redhat.com> | 2001-11-15 14:14:03 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2001-11-15 14:14:03 +0000 |
commit | 5389c987a36cd10b87351e7ec2e19b87790f0efb (patch) | |
tree | 1aa1afb41525eb41122af6bb1e7d4d1ca5af3c34 /libdm/datastruct | |
parent | 79b5666abecc725e1b1a4a322f1a106d0ba29bc5 (diff) | |
download | lvm2-5389c987a36cd10b87351e7ec2e19b87790f0efb.tar.gz lvm2-5389c987a36cd10b87351e7ec2e19b87790f0efb.tar.xz lvm2-5389c987a36cd10b87351e7ec2e19b87790f0efb.zip |
Use inttypes.h
Diffstat (limited to 'libdm/datastruct')
-rw-r--r-- | libdm/datastruct/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdm/datastruct/list.h b/libdm/datastruct/list.h index ef7e8028..1c4a791c 100644 --- a/libdm/datastruct/list.h +++ b/libdm/datastruct/list.h @@ -50,10 +50,10 @@ static inline int list_empty(struct list *head) { for (v = (head)->n; v != head; v = v->n) #define list_item(v, t) \ - ((t *)((char *)(v) - (unsigned int) &((t *) 0)->list)) + ((t *)((uintptr_t)(v) - (uintptr_t)&((t *) 0)->list)) /* Given a known element in a known structure, locate the struct list */ #define list_head(v, t, e) \ - (((t *)((char *)(v) - (unsigned int) &((t *) 0)->e))->list) + (((t *)((uintptr_t)(v) - (uintptr_t)&((t *) 0)->e))->list) #endif |