瀏覽代碼

- export param types adjusted to PARAM_STR/STRING & PARAM_INT
- removed corresponding obsolete strlen(str_param) in init

Tomas Mandys 19 年之前
父節點
當前提交
73ebd92453
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      modules/db_flatstore/flatstore_mod.c

+ 4 - 4
modules/db_flatstore/flatstore_mod.c

@@ -97,10 +97,10 @@ static cmd_export_t cmds[] = {
  * Exported parameters
  * Exported parameters
  */
  */
 static param_export_t params[] = {
 static param_export_t params[] = {
-	{"flush", INT_PARAM, &flat_flush},
-	{"field_delimiter", STR_PARAM, &flat_delimiter},
-	{"record_delimiter", STR_PARAM, &flat_record_delimiter},
-	{"escape_char", STR_PARAM, &flat_escape},
+	{"flush", PARAM_INT, &flat_flush},
+	{"field_delimiter", PARAM_STRING, &flat_delimiter},
+	{"record_delimiter", PARAM_STRING, &flat_record_delimiter},
+	{"escape_char", PARAM_STRING, &flat_escape},
 	{0, 0, 0}
 	{0, 0, 0}
 };
 };