]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixes for super pedantic compilers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 15 Jul 2017 14:46:49 +0000 (10:46 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 15 Jul 2017 14:46:49 +0000 (10:46 -0400)
src/lib/io/proto.h
src/protocols/ethernet/ethernet.c

index 3890ef015ea004f973639da559a5c145c9a8d188..97145caa143c981759a22084b548963c4f650353 100644 (file)
@@ -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.
index 79c0517c7f8ef903af36346e603e3b8170479c0b..43075499688097883d068e82a9a6a43651b0bc10 100644 (file)
@@ -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);