changeset 348:a001708551d0

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Feb 2016 08:53:41 +0200
parents 75b5e4c37e3a
children 5c5b3919263d
files th_datastruct.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/th_datastruct.c	Wed Feb 24 11:35:29 2016 +0200
+++ b/th_datastruct.c	Thu Feb 25 08:53:41 2016 +0200
@@ -235,10 +235,7 @@
 
 size_t th_llist_length(const th_llist_t *list)
 {
-    if (list == NULL)
-        return 0;
-    else
-        return list->num;
+    return (list == NULL) ? 0 : list->num;
 }
 
 
@@ -586,5 +583,3 @@
 
     return TRUE;
 }
-
-