]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
I wish compilers would give consistent error messages
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Feb 2023 02:22:18 +0000 (21:22 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Feb 2023 02:22:18 +0000 (21:22 -0500)
src/lib/util/dict_tokenize.c

index d982a69dd0c446bd8392ca736936b7e2f4cf7973..65eb7b7ec188891a0ae451a545bcd76c4a172eef 100644 (file)
@@ -2420,7 +2420,7 @@ static int _dict_from_file(dict_tokenize_ctx_t *ctx,
                         *      Pop the stack until we get to a PROTOCOL nesting.
                         */
                        while ((ctx->stack_depth > 0) && (ctx->stack[ctx->stack_depth].nest != NEST_PROTOCOL)) {
-                               if (ctx->stack[ctx->stack_depth].nest != FR_TYPE_NULL) {
+                               if (ctx->stack[ctx->stack_depth].nest != NEST_NONE) {
                                        fr_strerror_printf_push("END-PROTOCOL %s with mismatched BEGIN-??? %s", argv[1],
                                                ctx->stack[ctx->stack_depth].da->name);
                                        goto error;
@@ -2511,7 +2511,7 @@ static int _dict_from_file(dict_tokenize_ctx_t *ctx,
                         *      Pop the stack until we get to a TLV nesting.
                         */
                        while ((ctx->stack_depth > 0) && (ctx->stack[ctx->stack_depth].nest != NEST_TLV)) {
-                               if (ctx->stack[ctx->stack_depth].nest != FR_TYPE_NULL) {
+                               if (ctx->stack[ctx->stack_depth].nest != NEST_NONE) {
                                        fr_strerror_printf_push("END-TLV %s with mismatched BEGIN-??? %s", argv[1],
                                                ctx->stack[ctx->stack_depth].da->name);
                                        goto error;
@@ -2680,7 +2680,7 @@ static int _dict_from_file(dict_tokenize_ctx_t *ctx,
                         *      Pop the stack until we get to a VENDOR nesting.
                         */
                        while ((ctx->stack_depth > 0) && (ctx->stack[ctx->stack_depth].nest != NEST_VENDOR)) {
-                               if (ctx->stack[ctx->stack_depth].nest != FR_TYPE_NULL) {
+                               if (ctx->stack[ctx->stack_depth].nest != NEST_NONE) {
                                        fr_strerror_printf_push("END-VENDOR %s with mismatched BEGIN-??? %s", argv[1],
                                                ctx->stack[ctx->stack_depth].da->name);
                                        goto error;