From 71fda00f320379f5cbee8e118848de98caaa229d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 14 Oct 2013 06:10:14 +0200 Subject: list: make our list macros a bit easier to use by not requring type spec on each invocation We can determine the list entry type via the typeof() gcc construct, and so we should to make the macros much shorter to use. --- src/bootchart/svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bootchart/svg.c') diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 7ac0138a2b..c088cad7f5 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -81,7 +81,7 @@ static void svg_header(void) { struct list_sample_data *sampledata_last; sampledata = head; - LIST_FIND_TAIL(struct list_sample_data, link, sampledata, head); + LIST_FIND_TAIL(link, sampledata, head); sampledata_last = head; LIST_FOREACH_BEFORE(link, sampledata, head) { sampledata_last = sampledata; -- cgit v1.2.3-54-g00ecf