aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2021-10-13 17:02:17 +0300
committerDavid Bremner <david@tethera.net>2021-10-23 08:39:16 -0300
commitf316f7ef6af98b8f89f094dde24e36b837b3c5f2 (patch)
treeb7940fd85fbd42e4e1fc9129fccde93b109f2471 /util
parent6987286a5b562709c1de583db66673c202fd926c (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 'util')
-rw-r--r--util/hex-escape.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/hex-escape.h b/util/hex-escape.h
index 8703334c..83a4c6f1 100644
--- a/util/hex-escape.h
+++ b/util/hex-escape.h
@@ -5,7 +5,7 @@
extern "C" {
#endif
-typedef enum hex_status {
+typedef enum {
HEX_SUCCESS = 0,
HEX_SYNTAX_ERROR,
HEX_OUT_OF_MEMORY