From: Carl Worth Date: Sat, 19 Dec 2009 20:34:06 +0000 (-0800) Subject: lib: Add missing value to notmuch_private_status_t enum. X-Git-Tag: 0.1~203 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c6b7d311c123bdddfc806359f1fd6b444245914;p=notmuch.git lib: Add missing value to notmuch_private_status_t enum. And fix the initialization such that the private enum will always have distinct values from the public enum even if we similarly miss the addition of a new public value in the future. --- diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 116f63d6..b9566340 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -117,9 +117,10 @@ typedef enum _notmuch_private_status { NOTMUCH_PRIVATE_STATUS_FILE_NOT_EMAIL = NOTMUCH_STATUS_FILE_NOT_EMAIL, NOTMUCH_PRIVATE_STATUS_NULL_POINTER = NOTMUCH_STATUS_NULL_POINTER, NOTMUCH_PRIVATE_STATUS_TAG_TOO_LONG = NOTMUCH_STATUS_TAG_TOO_LONG, + NOTMUCH_PRIVATE_STATUS_UNBALANCED_FREEZE_THAW = NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW, /* Then add our own private values. */ - NOTMUCH_PRIVATE_STATUS_TERM_TOO_LONG, + NOTMUCH_PRIVATE_STATUS_TERM_TOO_LONG = NOTMUCH_STATUS_LAST_STATUS, NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND, NOTMUCH_PRIVATE_STATUS_LAST_STATUS