Commit d4924a38 authored by Slava Monich's avatar Slava Monich Committed by Jussi Laakkonen

vpn: Constify struct vpn_driver pointer

There's no reason for it to be writable
parent 11272009
......@@ -66,7 +66,7 @@ struct vpn_data {
struct vpn_driver_data {
const char *name;
const char *program;
struct vpn_driver *vpn_driver;
const struct vpn_driver *vpn_driver;
struct vpn_provider_driver provider_driver;
};
......@@ -768,7 +768,7 @@ static int vpn_route_env_parse(struct vpn_provider *provider, const char *key,
return 0;
}
int vpn_register(const char *name, struct vpn_driver *vpn_driver,
int vpn_register(const char *name, const struct vpn_driver *vpn_driver,
const char *program)
{
struct vpn_driver_data *data;
......
......@@ -57,7 +57,7 @@ struct vpn_driver {
enum vpn_provider_route_type *type);
};
int vpn_register(const char *name, struct vpn_driver *driver,
int vpn_register(const char *name, const struct vpn_driver *driver,
const char *program);
void vpn_unregister(const char *provider_name);
void vpn_died(struct connman_task *task, int exit_code, void *user_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment