diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2014-12-15 13:52:24 +0100 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2015-01-12 10:04:53 +0100 |
commit | a8d319d5999f02574504bbcd2a6ed2cfd2921d1f (patch) | |
tree | b478a5f7b3f0ec9cb6ff33646a8189bc96a98bd8 /src | |
parent | 9fcfe5cc7bb639e238cfe7fba99ac0dda9c7c286 (diff) |
rt-app: fix warning
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Tested-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/rt-app_parse_config.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rt-app_parse_config.c b/src/rt-app_parse_config.c index b77a408..d68ad39 100644 --- a/src/rt-app_parse_config.c +++ b/src/rt-app_parse_config.c @@ -192,7 +192,7 @@ static int init_cond_resource(rtapp_resource_t *data, const rtapp_options_t *opt } static void -init_resource_data(char *name, int type, int idx, const rtapp_options_t *opts) +init_resource_data(const char *name, int type, int idx, const rtapp_options_t *opts) { rtapp_resource_t *data = &(opts->resources[idx]); char *target; @@ -216,7 +216,7 @@ init_resource_data(char *name, int type, int idx, const rtapp_options_t *opts) } static void -parse_resource_data(char *name, struct json_object *obj, int idx, +parse_resource_data(const char *name, struct json_object *obj, int idx, rtapp_resource_t *data, const rtapp_options_t *opts) { char *type, *target; @@ -236,7 +236,7 @@ parse_resource_data(char *name, struct json_object *obj, int idx, } static int -add_resource_data(char *name, int type, rtapp_options_t *opts) +add_resource_data(const char *name, int type, rtapp_options_t *opts) { int idx; @@ -280,7 +280,7 @@ parse_resources(struct json_object *resources, rtapp_options_t *opts) } } -static int get_resource_index(char *name, int type, const rtapp_options_t *opts) +static int get_resource_index(const char *name, int type, rtapp_options_t *opts) { rtapp_resource_t *resources = opts->resources; int nresources = opts->nresources; @@ -297,11 +297,11 @@ static int get_resource_index(char *name, int type, const rtapp_options_t *opts) static void parse_thread_event_data(char *name, struct json_object *obj, - event_data_t *data, const rtapp_options_t *opts) + event_data_t *data, rtapp_options_t *opts) { rtapp_resource_t *rdata, *ddata; char unique_name[22]; - char *ref; + const char *ref; int i; if (!strncmp(name, "run", strlen("run")) || @@ -504,7 +504,7 @@ obj_is_event(char *name) static void parse_thread_phase_data(struct json_object *obj, - phase_data_t *data, const rtapp_options_t *opts) + phase_data_t *data, rtapp_options_t *opts) { /* used in the foreach macro */ struct lh_entry *entry; char *key; struct json_object *val; int idx; @@ -539,7 +539,7 @@ parse_thread_phase_data(struct json_object *obj, static void parse_thread_data(char *name, struct json_object *obj, int index, - thread_data_t *data, const rtapp_options_t *opts) + thread_data_t *data, rtapp_options_t *opts) { char *policy; char def_policy[RTAPP_POLICY_DESCR_LENGTH]; |