tools: acrn-crashlog: refine the configuration structure

1. get string size when parsing configuration.
2. add 'const' for strings got from configuration.

Tracked-On: #1254
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com>
This commit is contained in:
Liu, Xinwu
2018-09-25 16:21:47 +08:00
committed by Xie, Nanlin
parent fe4d503c3d
commit 6938caa25f
12 changed files with 153 additions and 90 deletions

View File

@@ -29,7 +29,7 @@ extern char *history_file;
int prepare_history(void);
void hist_raise_infoerror(char *type);
void hist_raise_uptime(char *lastuptime);
void hist_raise_event(char *event, char *type, char *log, char *lastuptime,
char *key);
void hist_raise_event(const char *event, const char *type, const char *log,
const char *lastuptime, const char *key);
#endif