From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 9 May 2012 10:23:07 +0000 (+0200) Subject: go: fix the notmuch status constants X-Git-Tag: 0.13~16 X-Git-Url: https://git.cworth.org/git?p=obsolete%2Fnotmuch-old;a=commitdiff_plain;h=0af7295faf56d5c469a9b47ad253ea5b146b0975 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> --- 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