[PATCH 2/5] fixed wrong constant values

laochailan laochailan at web.de
Sun May 31 05:02:12 PDT 2015


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



More information about the notmuch mailing list