*.c: General spring-clean of the coding style.
[anag] / longest.c
index 1879e48..c9053bb 100644 (file)
--- a/longest.c
+++ b/longest.c
@@ -75,18 +75,15 @@ static int aa_output(void *p)
   link *l;
 
   if (!n->l) return (0);
-  for (l = n->l; l; l = l->next)
-    puts(l->p);
+  for (l = n->l; l; l = l->next) puts(l->p);
   return (1);
 }
 
 static int n_longest(node *nn, const char *p, size_t sz)
 {
   node_longest *n = (node_longest *)nn;
-  if (sz < n->len)
-    return (0);
-  if (sz > n->len)
-    empty(n);
+  if (sz < n->len) return (0);
+  if (sz > n->len) empty(n);
   insert(n, p, sz);
   return (0);
 }
@@ -94,10 +91,8 @@ static int n_longest(node *nn, const char *p, size_t sz)
 static int n_shortest(node *nn, const char *p, size_t sz)
 {
   node_longest *n = (node_longest *)nn;
-  if (n->len && sz > n->len)
-    return (0);
-  if (!n->len || sz < n->len)
-    empty(n);
+  if (n->len && sz > n->len) return (0);
+  if (!n->len || sz < n->len) empty(n);
   insert(n, p, sz);
   return (0);
 }