From: Yu Watanabe Date: Sat, 20 Apr 2024 05:47:04 +0000 (+0900) Subject: sd-radv: shorten enumerated type definition X-Git-Tag: v256-rc1~90^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d7f069d37e7c8360c0c4a737123cc7d011e5d3;p=thirdparty%2Fsystemd.git sd-radv: shorten enumerated type definition --- diff --git a/src/libsystemd-network/radv-internal.h b/src/libsystemd-network/radv-internal.h index cf3fe9e226e..378781c138d 100644 --- a/src/libsystemd-network/radv-internal.h +++ b/src/libsystemd-network/radv-internal.h @@ -79,11 +79,10 @@ /* 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;