From: nekral-guest Date: Fri, 20 Aug 2010 18:09:14 +0000 (+0000) Subject: * lib/commonio.c: Avoid multi-statements lines. X-Git-Tag: 4.1.5~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b74294844f59c816cd1b1e7f15807b24f8dd865;p=shadow * lib/commonio.c: Avoid multi-statements lines. --- 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);