From 2170d79036b182e1a3340b7fcfef37407682ba2f Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 17 Feb 2022 21:28:45 +0100 Subject: [PATCH] [osdep] const in get_e --- src/osdep/osdep.c | 2 +- src/osdep/osdep.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdep/osdep.c b/src/osdep/osdep.c index 61c93e9df..029b325c5 100644 --- a/src/osdep/osdep.c +++ b/src/osdep/osdep.c @@ -131,7 +131,7 @@ set_ip_tos_throughput(int socket) } int -get_e(char *env) +get_e(const char *env) { char *v = getenv(env); diff --git a/src/osdep/osdep.h b/src/osdep/osdep.h index ebc839bbb..2ec1e324a 100644 --- a/src/osdep/osdep.h +++ b/src/osdep/osdep.h @@ -20,7 +20,7 @@ extern "C" { #endif int get_system_env(void); -int get_e(char *env); +int get_e(const char *env); int is_xterm(void); int is_twterm(void); void get_terminal_size(int, int *, int *);