From ef33836a484dcf325ab8e474f95ac1b3b3b02f8c Mon Sep 17 00:00:00 2001 From: laochailan Date: Sun, 31 May 2015 14:02:12 +0200 Subject: [PATCH] [PATCH 2/5] fixed wrong constant values --- 1d/52908f6745b9a7c10f923d548a9edcef8c7dda | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 1d/52908f6745b9a7c10f923d548a9edcef8c7dda diff --git a/1d/52908f6745b9a7c10f923d548a9edcef8c7dda b/1d/52908f6745b9a7c10f923d548a9edcef8c7dda new file mode 100644 index 000000000..59251b360 --- /dev/null +++ b/1d/52908f6745b9a7c10f923d548a9edcef8c7dda @@ -0,0 +1,85 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 095EA6DE17A6 + for ; Sun, 31 May 2015 05:07:56 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.57 +X-Spam-Level: +X-Spam-Status: No, score=-0.57 tagged_above=-999 required=5 + tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, + RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 5gPPibarjIrX for ; + Sun, 31 May 2015 05:07:54 -0700 (PDT) +Received: from mout.web.de (mout.web.de [212.227.15.4]) + by arlo.cworth.org (Postfix) with ESMTPS id 1F7726DE179E + for ; Sun, 31 May 2015 05:07:54 -0700 (PDT) +Received: from localhost ([92.204.48.23]) by smtp.web.de (mrweb001) with + ESMTPSA (Nemesis) id 0MIvJx-1Yx6902rY9-002XkA; Sun, 31 May 2015 14:02:47 + +0200 +From: laochailan +To: notmuch@notmuchmail.org +Subject: [PATCH 2/5] fixed wrong constant values +Date: Sun, 31 May 2015 14:02:12 +0200 +Message-Id: <1433073735-7721-3-git-send-email-laochailan@web.de> +X-Mailer: git-send-email 2.4.2 +In-Reply-To: <1433073735-7721-1-git-send-email-laochailan@web.de> +References: <1433073735-7721-1-git-send-email-laochailan@web.de> +X-Provags-ID: V03:K0:R9vA8jHFJuQOB34ore9fRMDmeM+Wa++OV8ouI/ug1LylP7WxT5S + 7D949hK0X5SRyNwQT5KXUjP0wMSAfzy3WGiMIHJVLVWRb+hV6PAWre7ckzvgVSQwuooYT2k + PM30ePd6/RTinAdXIEY9GbhMUOrRzC0lyYHFAj43qg6OObtVCa7mRmat8yUu9wHt1uyyJ1W + NvvoQsmgB+0lddHJuq+XQ== +X-UI-Out-Filterresults: notjunk:1;V01:K0:zbpQ6E3jxVk=:gJVZSLO/WSoXvPfMrtR+2c + JPbm3RLGdgH25oczQUqa8xW0jMrZk1bTaz5RnTJ5k2EgdmoR1a6R2aG2xgRIVzaLSyjcDeUQh + g/Jll8RERoy8rCXKhjBcE4N6SJ43bXwGHxmNB4YuNRa/hbyBAMi1zsoWiIl1V7Q7ZBFo+VU6m + qN1nsWnyUelhUIEIJn8eRsrIk97xxvo6Di14G0ccPO9P5XIcLiLkAVD3U8UcgMC1J0fcC50gO + j11B8DF230aouTa/UYPzxOtj5+wkvW4LKGTl4TQn0BBO+T7a3qTi4+I6ACBvn+c42dFK2l+C6 + mPVwzdC+EmR3gs9fDNytf64nh+DlZgUrWW1U2JbgrHi7nCo/vKl5S2f8VSLEwk0qFNHAzM14E + n8PcH9p/MvBRS1YonL24k8eqoUtkTWCW5Joop05G5+2/HfyTE/xoCGjaPt8UW8a1YVSSWSjbf + OEihEqvyEglMIOaaUZcMPGQPpOiVhP0pkbbrKgi8UaJbQ6PmsPmcBFKHdA032oANrheSVGzrr + u1ic0qVZ77w+bvLIdJSCFh5qR4OfReLjuMVKQhwrdOA7hnn5rO8/4X0iOsB62OL6uxh8u8W1y + 1hc9vgGZq12fapRUX7uZ10YX2w3+WgzJfg++5GzCJ0nveXsvRvM0lJKIFr+L1EltDE7tWhvxU + 9mdfYfdwszTwGexC6hICOxL80bJCn+/Z3A/srQpoDdQubug== +X-Mailman-Approved-At: Mon, 01 Jun 2015 09:14:43 -0700 +Cc: laochailan +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 31 May 2015 12:07:56 -0000 + +before, they were both zero, so getting a read-writeable handle was +impossible. +--- + bindings/go/src/notmuch/notmuch.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go +index a0b901f..bffc120 100644 +--- a/bindings/go/src/notmuch/notmuch.go ++++ b/bindings/go/src/notmuch/notmuch.go +@@ -86,7 +86,7 @@ type Filenames struct { + type DatabaseMode C.notmuch_database_mode_t + + const ( +- DATABASE_MODE_READ_ONLY DatabaseMode = 0 ++ DATABASE_MODE_READ_ONLY DatabaseMode = iota + DATABASE_MODE_READ_WRITE + ) + +-- +2.4.2 + -- 2.26.2