]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move map alloc functions and add list_mod_alloc
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Jan 2018 03:12:29 +0000 (20:12 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Jan 2018 19:12:23 +0000 (12:12 -0700)
src/main/map.c

index 3166838f5c5aa6feb2e24a8df06cc8d44d2b081e..dd6a9b71ccc99c0dc5a641994c767ea57b9136e1 100644 (file)
@@ -46,6 +46,15 @@ static void map_dump(REQUEST *request, vp_map_t const *map)
 }
 #endif
 
+static inline vp_map_t *map_alloc(TALLOC_CTX *ctx)
+{
+       return talloc_zero(ctx, vp_map_t);
+}
+
+static inline vp_list_mod_t *list_mod_alloc(TALLOC_CTX *ctx)
+{
+       return talloc_zero(ctx, vp_list_mod_t);
+}
 
 /** re-parse a map where the lhs is an unknown attribute.
  *
@@ -518,9 +527,7 @@ int map_afrom_attr_str(TALLOC_CTX *ctx, vp_map_t **out, char const *vp_str,
        return 0;
 }
 
-static vp_map_t *map_alloc(TALLOC_CTX *ctx)
 {
-       return talloc_zero(ctx, vp_map_t);
 }
 
 static void map_sort_split(vp_map_t *source, vp_map_t **front, vp_map_t **back)