[PATCH 2/5] fixed wrong constant values

Subject: [PATCH 2/5] fixed wrong constant values

Date: Sun, 31 May 2015 14:02:12 +0200

To: notmuch@notmuchmail.org

Cc: laochailan

From: laochailan


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


Thread: