Andreas Krennmair:
authorak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sun, 13 Mar 2005 22:28:26 +0000 (22:28 +0000)
committerak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sun, 13 Mar 2005 22:28:26 +0000 (22:28 +0000)
made mutt-ng compile with tcc (thx mika!)

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@176 e385b8ad-14ed-0310-8656-cc95a2468c6d

mbox.c
thread.c

diff --git a/mbox.c b/mbox.c
index 71228d9..b459f4e 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -1109,8 +1109,10 @@ int mutt_reopen_mailbox (CONTEXT *ctx, int *index_hint)
       else 
       {
         cmp_headers = mbox_strict_cmp_headers;
-        rc = ((ctx->magic == M_MBOX) ? mbox_parse_mailbox
-                                    : mmdf_parse_mailbox) (ctx);
+        if (ctx->magic == M_MBOX)
+          rc = mbox_parse_mailbox(ctx);
+        else
+          rc = mmdf_parse_mailbox(ctx);
       }
       break;
 
index 0012ec2..29e876d 100644 (file)
--- a/thread.c
+++ b/thread.c
@@ -561,7 +561,7 @@ void mutt_clear_threads (CONTEXT *ctx)
   ctx->tree = NULL;
 
   if (ctx->thread_hash)
-    hash_destroy (&ctx->thread_hash, *free);
+    hash_destroy (&ctx->thread_hash, free);
 }
 
 int compare_threads (const void *a, const void *b)
@@ -643,7 +643,7 @@ THREAD *mutt_sort_subthreads (THREAD *thread, int init)
          array[i] = thread;
        }
 
-       qsort ((void *) array, i, sizeof (THREAD *), *compare_threads);
+       qsort ((void *) array, i, sizeof (THREAD *), compare_threads);
 
        /* attach them back together.  make thread the last sibling. */
        thread = array[0];