[PATCH 4/4] Explicitly type void* pointers
authorVladimir.Marek <Vladimir.Marek@oracle.com>
Mon, 9 Apr 2012 10:17:45 +0000 (12:17 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:10 +0000 (09:46 -0800)
4c/a6841e05c30e109ae6b88e0868678a7de9a961 [new file with mode: 0644]

diff --git a/4c/a6841e05c30e109ae6b88e0868678a7de9a961 b/4c/a6841e05c30e109ae6b88e0868678a7de9a961
new file mode 100644 (file)
index 0000000..d2658ea
--- /dev/null
@@ -0,0 +1,120 @@
+Return-Path: <Vladimir.Marek@oracle.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5F225403508\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 03:18:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.299\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id PI0aTh3NkeYc for <notmuch@notmuchmail.org>;\r
+       Mon,  9 Apr 2012 03:18:45 -0700 (PDT)\r
+Received: from rcsinet14.oracle.com (rcsinet14.oracle.com [148.87.113.126])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B0184416464\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 03:18:45 -0700 (PDT)\r
+Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117])\r
+       by rcsinet14.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with\r
+       ESMTP id q39AGcAV026355\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
+       for <notmuch@notmuchmail.org>; Mon, 9 Apr 2012 10:16:38 GMT\r
+Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])\r
+       by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with\r
+       ESMTP id q39AIhBo010144\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);\r
+       Mon, 9 Apr 2012 10:18:44 GMT\r
+Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])\r
+       by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
+       q39AIg4c023878\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);\r
+       Mon, 9 Apr 2012 10:18:43 GMT\r
+Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72])\r
+       by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id\r
+       q39AIgCd003302; Mon, 9 Apr 2012 05:18:42 -0500\r
+Received: from pub.czech.sun.com (/10.163.20.32)\r
+       by default (Oracle Beehive Gateway v4.0)\r
+       with ESMTP ; Mon, 09 Apr 2012 03:18:42 -0700\r
+From: Vladimir.Marek@oracle.com\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 4/4] Explicitly type void* pointers\r
+Date: Mon,  9 Apr 2012 12:17:45 +0200\r
+Message-Id: <1333966665-10469-5-git-send-email-Vladimir.Marek@oracle.com>\r
+X-Mailer: git-send-email 1.7.3.2\r
+In-Reply-To: <1333966665-10469-1-git-send-email-Vladimir.Marek@oracle.com>\r
+References: <1333966665-10469-1-git-send-email-Vladimir.Marek@oracle.com>\r
+X-Source-IP: ucsinet22.oracle.com [156.151.31.94]\r
+X-CT-RefId: str=0001.0A090201.4F82B784.0060,ss=1,re=0.000,fgs=0\r
+Cc: Vladimir Marek <vlmarek@volny.cz>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 09 Apr 2012 10:18:46 -0000\r
+\r
+From: Vladimir Marek <vlmarek@volny.cz>\r
+\r
+\r
+Signed-off-by: Vladimir Marek <vlmarek@volny.cz>\r
+---\r
+ lib/database.cc |    2 +-\r
+ lib/message.cc  |    2 +-\r
+ lib/thread.cc   |    2 +-\r
+ 3 files changed, 3 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/lib/database.cc b/lib/database.cc\r
+index 16c4354..3c82632 100644\r
+--- a/lib/database.cc\r
++++ b/lib/database.cc\r
+@@ -1361,7 +1361,7 @@ _resolve_message_id_to_thread_id (notmuch_database_t *notmuch,\r
+       return status;\r
\r
+     if (message) {\r
+-      *thread_id_ret = talloc_steal (ctx,\r
++      *thread_id_ret = (const char*)talloc_steal (ctx,\r
+                                      notmuch_message_get_thread_id (message));\r
\r
+       notmuch_message_destroy (message);\r
+diff --git a/lib/message.cc b/lib/message.cc\r
+index 0075425..d56d442 100644\r
+--- a/lib/message.cc\r
++++ b/lib/message.cc\r
+@@ -220,7 +220,7 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch,\r
+                                                                           message_id,\r
+                                                                           &message);\r
+     if (message)\r
+-      return talloc_steal (notmuch, message);\r
++      return (notmuch_message_t*) talloc_steal (notmuch, message);\r
+     else if (*status_ret)\r
+       return NULL;\r
\r
+diff --git a/lib/thread.cc b/lib/thread.cc\r
+index e976d64..d41ff3e 100644\r
+--- a/lib/thread.cc\r
++++ b/lib/thread.cc\r
+@@ -225,7 +225,7 @@ _thread_add_message (notmuch_thread_t *thread,\r
+     char *clean_author;\r
\r
+     _notmuch_message_list_add_message (thread->message_list,\r
+-                                     talloc_steal (thread, message));\r
++                                     (_notmuch_message*)talloc_steal (thread, message));\r
+     thread->total_messages++;\r
\r
+     g_hash_table_insert (thread->message_hash,\r
+-- \r
+1.7.3.2\r
+\r