From a26b06f09dd2317ab8ffb76dcc1ebb64ff2a80ad Mon Sep 17 00:00:00 2001 From: laochailan Date: Sun, 31 May 2015 14:02:12 +0200 Subject: [PATCH] fixed wrong constant values before, they were both zero, so getting a read-writeable handle was impossible. --- contrib/go/src/notmuch/notmuch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/go/src/notmuch/notmuch.go b/contrib/go/src/notmuch/notmuch.go index a8611ebb..2d684311 100644 --- a/contrib/go/src/notmuch/notmuch.go +++ b/contrib/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.26.2