fixed wrong constant values
authorlaochailan <laochailan@web.de>
Sun, 31 May 2015 12:02:12 +0000 (14:02 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 3 Sep 2016 23:15:46 +0000 (20:15 -0300)
before, they were both zero, so getting a read-writeable handle was
impossible.

contrib/go/src/notmuch/notmuch.go

index a8611ebbe53cc833619b7a51fdbfb6c567ba9532..2d6843112ae0ba5cec49ae068cdb4070442f35a6 100644 (file)
@@ -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
 )