]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-radv: shorten enumerated type definition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Apr 2024 05:47:04 +0000 (14:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Apr 2024 05:59:27 +0000 (14:59 +0900)
src/libsystemd-network/radv-internal.h

index cf3fe9e226eabb531fb5af78167aaaab2dd63201..378781c138dce130e9ac916ddc87c87026644d1e 100644 (file)
 /* Pref64 option type (RFC8781, section 4) */
 #define RADV_OPT_PREF64                           38
 
-enum RAdvState {
+typedef enum RAdvState {
         RADV_STATE_IDLE                      = 0,
         RADV_STATE_ADVERTISING               = 1,
-};
-typedef enum RAdvState RAdvState;
+} RAdvState;
 
 struct sd_radv_opt_dns {
         uint8_t type;