diff options
| author | Jani Nikula <jani@nikula.org> | 2021-10-13 17:02:17 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-10-23 08:39:16 -0300 |
| commit | f316f7ef6af98b8f89f094dde24e36b837b3c5f2 (patch) | |
| tree | b7940fd85fbd42e4e1fc9129fccde93b109f2471 /notmuch-client.h | |
| parent | 6987286a5b562709c1de583db66673c202fd926c (diff) | |
cli: 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 'notmuch-client.h')
| -rw-r--r-- | notmuch-client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 96d81166..82ae44e4 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -426,13 +426,13 @@ mime_node_seek_dfs (mime_node_t *node, int n); const _notmuch_message_crypto_t * mime_node_get_message_crypto_status (mime_node_t *node); -typedef enum dump_formats { +typedef enum { DUMP_FORMAT_AUTO, DUMP_FORMAT_BATCH_TAG, DUMP_FORMAT_SUP } dump_format_t; -typedef enum dump_includes { +typedef enum { DUMP_INCLUDE_TAGS = 1, DUMP_INCLUDE_CONFIG = 2, DUMP_INCLUDE_PROPERTIES = 4 |
