]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Formatting
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 17 Mar 2018 19:14:01 +0000 (19:14 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 17 Mar 2018 20:03:21 +0000 (20:03 +0000)
src/lib/util/dict.c

index 2aea7afcdbbeedbb840119231e9694127646861d..61e0220def0b0ded8015ac70d2173a904accda2b 100644 (file)
@@ -2160,7 +2160,6 @@ static int dict_read_process_value(fr_dict_t *dict, char **argv, int argc)
        return 0;
 }
 
-
 /*
  *     Process the FLAGS command
  */
@@ -2188,7 +2187,6 @@ static int dict_read_process_flags(UNUSED fr_dict_t *dict, char **argv, int argc
        return -1;
 }
 
-
 static int dict_read_parse_format(char const *format, unsigned int *pvalue, int *ptype, int *plength,
                                  bool *pcontinuation)
 {
@@ -2776,12 +2774,10 @@ static int dict_from_file(fr_dict_t *dict,
                          char const *dir_name, char const *filename,
                          char const *src_file, int src_line)
 {
-       dict_from_file_ctx_t ctx;
-
-       memset(&ctx, 0, sizeof(ctx));
-
-       ctx.dict = dict;
-       ctx.parent = dict->root;
+       dict_from_file_ctx_t    ctx = {
+                                       .dict = dict,
+                                       .parent = dict->root
+                               };
 
        return _dict_from_file(&ctx, dir_name, filename, src_file, src_line);
 }