From: Arran Cudbard-Bell Date: Sat, 15 Jul 2017 14:46:49 +0000 (-0400) Subject: Fixes for super pedantic compilers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8daffdb69ddd4e50008f683d36076974b6a243f1;p=thirdparty%2Ffreeradius-server.git Fixes for super pedantic compilers --- diff --git a/src/lib/io/proto.h b/src/lib/io/proto.h index 3890ef015ea..97145caa143 100644 --- a/src/lib/io/proto.h +++ b/src/lib/io/proto.h @@ -161,7 +161,7 @@ typedef struct { size_t proto_ctx_size; //!< Size required for the packet ctx structure. - fr_proto_opt_group_t opt_group; //!< Option groups implemented by proto lib. + int opt_group; //!< Option groups implemented by proto lib. fr_proto_decode_t decode; //!< Function to decode a protocol/header. fr_proto_encode_t encode; //!< Function to encode a protocol/header. diff --git a/src/protocols/ethernet/ethernet.c b/src/protocols/ethernet/ethernet.c index 79c0517c7f8..43075499688 100644 --- a/src/protocols/ethernet/ethernet.c +++ b/src/protocols/ethernet/ethernet.c @@ -292,7 +292,6 @@ static int fr_ethernet_get_option(fr_value_box_t *out, void const *proto_ctx, fr fr_strerror_printf("Option %i group %i not implemented", opt, group); return -1; } - break; case PROTO_OPT_GROUP_L2: switch (opt) { @@ -314,7 +313,6 @@ static int fr_ethernet_get_option(fr_value_box_t *out, void const *proto_ctx, fr fr_strerror_printf("Option %i group %i not implemented", opt, group); return -1; } - break; default: fr_strerror_printf("Option group %i not implemented", group); @@ -367,7 +365,6 @@ static int fr_ethernet_set_option(void *proto_ctx, fr_proto_opt_group_t group, i fr_strerror_printf("Option %i group %i not implemented", opt, group); return -1; } - break; case PROTO_OPT_GROUP_L2: switch (opt) { @@ -394,7 +391,6 @@ static int fr_ethernet_set_option(void *proto_ctx, fr_proto_opt_group_t group, i fr_strerror_printf("Option %i group %i not implemented", opt, group); return -1; } - break; default: fr_strerror_printf("Option group %i not implemented", group);