From 6b74294844f59c816cd1b1e7f15807b24f8dd865 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 20 Aug 2010 18:09:14 +0000 Subject: [PATCH] * lib/commonio.c: Avoid multi-statements lines. --- ChangeLog | 4 ++++ lib/commonio.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6d013b16..bdcf9f12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-08-20 Nicolas François + + * lib/commonio.c: Avoid multi-statements lines. + 2010-08-20 Nicolas François * man/po/fr.po: Fix a typo. diff --git a/lib/commonio.c b/lib/commonio.c index 7a35e9ca..38f4d85a 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -742,7 +742,8 @@ commonio_sort (struct commonio_db *db, int (*cmp) (const void *, const void *)) NULL != ptr; #endif ptr = ptr->next) { - entries[n++] = ptr; + entries[n] = ptr; + n++; } qsort (entries, n, sizeof (struct commonio_entry *), cmp);