changeset 332:629876cc0540

Indentation cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 13:11:37 +0200
parents e35e15f07c66
children f8a133d0b703
files sidlib.c
diffstat 1 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/sidlib.c	Mon Jan 13 13:11:29 2020 +0200
+++ b/sidlib.c	Mon Jan 13 13:11:37 2020 +0200
@@ -562,7 +562,8 @@
             dbh->pindex[i++] = node;
 
         // Sort the indexes
-        qsort(dbh->pindex, dbh->nnodes, sizeof(SIDLibSLDBNode *), sidlib_sldb_compare_nodes);
+        qsort(dbh->pindex, dbh->nnodes,
+            sizeof(SIDLibSLDBNode *), sidlib_sldb_compare_nodes);
     }
 
     return THERR_OK;
@@ -593,7 +594,8 @@
 
     memcpy(&keyItem.hash, hash, sizeof(th_md5hash_t));
     key = &keyItem;
-    item = bsearch(&key, dbh->pindex, dbh->nnodes, sizeof(dbh->pindex[0]), sidlib_sldb_compare_nodes);
+    item = bsearch(&key, dbh->pindex, dbh->nnodes,
+        sizeof(dbh->pindex[0]), sidlib_sldb_compare_nodes);
 
     return (item != NULL) ? *item : NULL;
 }
@@ -1146,11 +1148,13 @@
             dbh->pindex[i++] = node;
 
             // Sort the subtunes
-            qsort(node->subtunes, node->nsubtunes, sizeof(SIDLibSTILSubTune), sidlib_stildb_compare_subtunes);
+            qsort(node->subtunes, node->nsubtunes,
+                sizeof(SIDLibSTILSubTune), sidlib_stildb_compare_subtunes);
         }
 
         // Sort the indexes
-        qsort(dbh->pindex, dbh->nnodes, sizeof(SIDLibSTILNode *), sidlib_stildb_compare_nodes);
+        qsort(dbh->pindex, dbh->nnodes,
+            sizeof(SIDLibSTILNode *), sidlib_stildb_compare_nodes);
     }
 
     return THERR_OK;
@@ -1165,7 +1169,8 @@
 
     keyItem.filename = (char *) filename;
     key = &keyItem;
-    item = bsearch(&key, dbh->pindex, dbh->nnodes, sizeof(SIDLibSTILNode *), sidlib_stildb_compare_nodes);
+    item = bsearch(&key, dbh->pindex, dbh->nnodes,
+        sizeof(SIDLibSTILNode *), sidlib_stildb_compare_nodes);
 
     return item != NULL ? *item : NULL;
 }