summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/ctrl/l2tp/dict.c2
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c4
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;