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;
This commit is contained in:
Jani Nikula 2021-10-13 17:02:17 +03:00 committed by David Bremner
parent 6987286a5b
commit f316f7ef6a
2 changed files with 3 additions and 3 deletions

View file

@ -426,13 +426,13 @@ mime_node_seek_dfs (mime_node_t *node, int n);
const _notmuch_message_crypto_t * const _notmuch_message_crypto_t *
mime_node_get_message_crypto_status (mime_node_t *node); mime_node_get_message_crypto_status (mime_node_t *node);
typedef enum dump_formats { typedef enum {
DUMP_FORMAT_AUTO, DUMP_FORMAT_AUTO,
DUMP_FORMAT_BATCH_TAG, DUMP_FORMAT_BATCH_TAG,
DUMP_FORMAT_SUP DUMP_FORMAT_SUP
} dump_format_t; } dump_format_t;
typedef enum dump_includes { typedef enum {
DUMP_INCLUDE_TAGS = 1, DUMP_INCLUDE_TAGS = 1,
DUMP_INCLUDE_CONFIG = 2, DUMP_INCLUDE_CONFIG = 2,
DUMP_INCLUDE_PROPERTIES = 4 DUMP_INCLUDE_PROPERTIES = 4

View file

@ -5,7 +5,7 @@
extern "C" { extern "C" {
#endif #endif
typedef enum hex_status { typedef enum {
HEX_SUCCESS = 0, HEX_SUCCESS = 0,
HEX_SYNTAX_ERROR, HEX_SYNTAX_ERROR,
HEX_OUT_OF_MEMORY HEX_OUT_OF_MEMORY