Browse code

core: use STR_STATIC_INIT() for defining core vars

Daniel-Constantin Mierla authored on 01/01/2021 10:58:33
Showing 1 changed files
... ...
@@ -141,11 +141,11 @@ static pv_export_t core_pvs[] = {
141 141
 	{ STR_STATIC_INIT("rc"), PVT_OTHER, pv_get_retcode, 0, 0, 0, 0, 0 },
142 142
 	{ STR_STATIC_INIT("retcode"), PVT_OTHER, pv_get_retcode, 0, 0, 0, 0, 0 },
143 143
 	{ STR_STATIC_INIT("env"), PVT_OTHER, pv_get_env, 0,
144
-		pv_parse_env_name, 0, 0, 0},
145
-	{{"def", (sizeof("def")-1)}, PVT_OTHER, pv_get_def, 0,
146
-		pv_parse_def_name, 0, 0, 0},
147
-	{{"defn", (sizeof("defn")-1)}, PVT_OTHER, pv_get_defn, 0,
148
-		pv_parse_defn_name, 0, 0, 0},
144
+		pv_parse_env_name, 0, 0, 0 },
145
+	{ STR_STATIC_INIT("def"), PVT_OTHER, pv_get_def, 0,
146
+		pv_parse_def_name, 0, 0, 0 },
147
+	{ STR_STATIC_INIT("defn"), PVT_OTHER, pv_get_defn, 0,
148
+		pv_parse_defn_name, 0, 0, 0 },
149 149
 
150 150
 	{ {0, 0}, 0, 0, 0, 0, 0, 0, 0 }
151 151
 };