]> granicus.if.org Git - shadow/commitdiff
* lib/commonio.c: Avoid multi-statements lines.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 20 Aug 2010 18:09:14 +0000 (18:09 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 20 Aug 2010 18:09:14 +0000 (18:09 +0000)
ChangeLog
lib/commonio.c

index 6d013b16b29a27fe669a80b97c7b4976a1e1f033..bdcf9f12d6f7078cda164ab2c61d4cf20900384c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-20  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/commonio.c: Avoid multi-statements lines.
+
 2010-08-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/po/fr.po: Fix a typo.
index 7a35e9ca135bb2a8b33f8b07dbeddcf17c45c89b..38f4d85abbf110659ecd15a449533c8d801833b2 100644 (file)
@@ -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);