aboutsummaryrefslogtreecommitdiffstats
path: root/lib/blkid
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@dilger.ca>2013-12-15 23:26:38 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-12-15 23:26:39 -0500
commiteaf4403561c5822d3cdcc93092039d49d1c0375e (patch)
tree801084ff21620184f3b35d3bf6f0063cde022563 /lib/blkid
parent269da3b8068ecb0bdf8077b0f7b27f164203cb35 (diff)
downloadandroid_external_e2fsprogs-eaf4403561c5822d3cdcc93092039d49d1c0375e.tar.gz
android_external_e2fsprogs-eaf4403561c5822d3cdcc93092039d49d1c0375e.tar.bz2
android_external_e2fsprogs-eaf4403561c5822d3cdcc93092039d49d1c0375e.zip
ext2fs,blkid: delete unused LIST_HEAD() macro
The LIST_HEAD() macro conflicts with the <sys/queue.h> declaration of the same name. Delete the unused LIST_HEAD() macro from the libext2fs and libblkid headers to avoid compiler warnings. It can be replaced by INIT_LIST_HEAD() or LIST_HEAD_INIT() if needed. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/blkid')
-rw-r--r--lib/blkid/list.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/blkid/list.h b/lib/blkid/list.h
index c1cbfec5..26a5ac1b 100644
--- a/lib/blkid/list.h
+++ b/lib/blkid/list.h
@@ -1,4 +1,4 @@
-#if !defined(_BLKID_LIST_H) && !defined(LIST_HEAD)
+#if !defined(_BLKID_LIST_H) && !defined(LIST_HEAD_INIT)
#define _BLKID_LIST_H
#ifdef __cplusplus
@@ -27,9 +27,6 @@ struct list_head {
#define LIST_HEAD_INIT(name) { &(name), &(name) }
-#define LIST_HEAD(name) \
- struct list_head name = LIST_HEAD_INIT(name)
-
#define INIT_LIST_HEAD(ptr) do { \
(ptr)->next = (ptr); (ptr)->prev = (ptr); \
} while (0)