From: laochailan Date: Sun, 31 May 2015 12:02:12 +0000 (+0200) Subject: fixed wrong constant values X-Git-Tag: 0.23_rc0~58 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=a26b06f09dd2317ab8ffb76dcc1ebb64ff2a80ad fixed wrong constant values before, they were both zero, so getting a read-writeable handle was impossible. --- 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 )