mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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>
This commit is contained in:
parent
9f5478637c
commit
0af7295faf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue