aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2021-10-13 17:02:16 +0300
committerDavid Bremner <david@tethera.net>2021-10-23 08:38:53 -0300
commit6987286a5b562709c1de583db66673c202fd926c (patch)
tree2a9474fa08549a106b28d06112c2aaf9384f9144 /lib/notmuch.h
parente0834e376a1078fc3a79978cf36a94785cdb2d30 (diff)
lib: remove enum names from typedefs
There are some enum typedefs with the enum name: typedef enum _name_t { ... } name_t; We don't need or use the enum names _name_t for anything, and not all of the enum typedefs have them. We have the typedefs specifically to use the typedef name. Use the anonymous enum in the typedefs: typedef enum { ... } name_t;
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index cb721b27..19391614 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -112,7 +112,7 @@ typedef int notmuch_bool_t;
* A zero value (NOTMUCH_STATUS_SUCCESS) indicates that the function
* completed without error. Any other value indicates an error.
*/
-typedef enum _notmuch_status {
+typedef enum {
/**
* No error occurred.
*/
@@ -1678,7 +1678,7 @@ notmuch_message_reindex (notmuch_message_t *message,
/**
* Message flags.
*/
-typedef enum _notmuch_message_flag {
+typedef enum {
NOTMUCH_MESSAGE_FLAG_MATCH,
NOTMUCH_MESSAGE_FLAG_EXCLUDED,
@@ -2524,7 +2524,7 @@ notmuch_config_list_destroy (notmuch_config_list_t *config_list);
/**
* Configuration keys known to libnotmuch
*/
-typedef enum _notmuch_config_key {
+typedef enum {
NOTMUCH_CONFIG_FIRST,
NOTMUCH_CONFIG_DATABASE_PATH = NOTMUCH_CONFIG_FIRST,
NOTMUCH_CONFIG_MAIL_ROOT,