aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/go
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-05-09 12:23:07 +0200
committerGravatar David Bremner <bremner@debian.org>2012-05-11 08:28:21 -0300
commit0af7295faf56d5c469a9b47ad253ea5b146b0975 (patch)
tree1c67cfdb678f61b092c3b0787d066e9da3079a07 /bindings/go
parent9f5478637c925ec9996328671d9a8f26ac6a6ed4 (diff)
go: fix the notmuch status constants
Formerly all the constants were set to zero since in golang constants are set to the previous value if no new value is specified. Use the iota operator that is incremented after each use to fix this issue. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/go')
-rw-r--r--bindings/go/pkg/notmuch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/go/pkg/notmuch.go b/bindings/go/pkg/notmuch.go
index f9f86b5e..e065b547 100644
--- a/bindings/go/pkg/notmuch.go
+++ b/bindings/go/pkg/notmuch.go
@@ -14,7 +14,7 @@ import "unsafe"
// Status codes used for the return values of most functions
type Status C.notmuch_status_t
const (
- STATUS_SUCCESS Status = 0
+ STATUS_SUCCESS Status = iota
STATUS_OUT_OF_MEMORY
STATUS_READ_ONLY_DATABASE
STATUS_XAPIAN_EXCEPTION