diff options
author | Sami Kerola | 2012-06-10 11:09:08 +0200 |
---|---|---|
committer | Sami Kerola | 2012-06-11 19:51:35 +0200 |
commit | c42206e4a79b4957eaa2ae8126a9912159890f1a (patch) | |
tree | f1a6ee486a0e27b6de39862e521cedcd943df758 /include/list.h | |
parent | uuidd: use output redirection which works [checkbashisms] (diff) | |
download | kernel-qcow2-util-linux-c42206e4a79b4957eaa2ae8126a9912159890f1a.tar.gz kernel-qcow2-util-linux-c42206e4a79b4957eaa2ae8126a9912159890f1a.tar.xz kernel-qcow2-util-linux-c42206e4a79b4957eaa2ae8126a9912159890f1a.zip |
include: fix spurious list.h warnings
include/list.h:224:17: warning: ISO C forbids omitting the middle term of a ?: expression [-pedantic]
include/list.h:255:19: warning: ISO C forbids omitting the middle term of a ?: expression [-pedantic]
Compilation warned about that at least 110 times.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/list.h')
-rw-r--r-- | include/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/list.h b/include/list.h index d8c3bf018..1824af05d 100644 --- a/include/list.h +++ b/include/list.h @@ -221,7 +221,7 @@ _INLINE_ struct list_head *merge(int (*cmp)(struct list_head *a, } tail = tail->next; } - tail->next = a?:b; + tail->next = a ? a : b; return head.next; } @@ -252,7 +252,7 @@ _INLINE_ void merge_and_restore_back_links(int (*cmp)(struct list_head *a, } tail = tail->next; } - tail->next = a ? : b; + tail->next = a ? a : b; do { /* |