diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-13 13:49:19 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-13 17:24:03 +0400 |
commit | f03ef414d049948962b28e4d78c4022c192f7ea1 (patch) | |
tree | fe1c5e8bd14989ac0e82c8f517e92c4eba2ee679 /accel-pppd/ctrl | |
parent | a91e53c79225217513d08b186d6d03f8306a559e (diff) | |
download | accel-ppp-xebd-f03ef414d049948962b28e4d78c4022c192f7ea1.tar.gz accel-ppp-xebd-f03ef414d049948962b28e4d78c4022c192f7ea1.zip |
l2tp: Define option variables as constant
Add const qualifiers to the string used for reading configuration.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/l2tp/dict.c | 2 | ||||
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/l2tp/dict.c b/accel-pppd/ctrl/l2tp/dict.c index 1a507fd..f145449 100644 --- a/accel-pppd/ctrl/l2tp/dict.c +++ b/accel-pppd/ctrl/l2tp/dict.c @@ -260,7 +260,7 @@ static int l2tp_dict_load(const char *fname) static void dict_init(void) { - char *opt; + const char *opt; opt = conf_get_opt("l2tp", "dictionary"); if (!opt) diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index e41bb00..8d37967 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -2346,7 +2346,7 @@ static struct l2tp_serv_t udp_serv = static void start_udp_server(void) { struct sockaddr_in addr; - char *opt; + const char *opt; int flag = 1; udp_serv.hnd.fd = socket(PF_INET, SOCK_DGRAM, 0); @@ -2415,7 +2415,7 @@ static int l2tp_create_tunnel_exec(const char *cmd, char * const *fields, struct sockaddr_in host = { .sin_family = AF_UNSPEC }; - char *opt = NULL; + const char *opt = NULL; int lns_mode = 0; int indx; |