summaryrefslogtreecommitdiff
path: root/Modules/getaddrinfo.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-12-12 13:55:04 +0200
committerGitHub <noreply@github.com>2017-12-12 13:55:04 +0200
commit4ae06c5337e01bdde28bce57b6b9166ad50947e3 (patch)
tree5e9e92f616bc452eb4096b56ea373fa8b46d2510 /Modules/getaddrinfo.c
parent5ce0a2a100909104836f53a2c8823006ec46f8ad (diff)
downloadcpython-git-4ae06c5337e01bdde28bce57b6b9166ad50947e3.tar.gz
bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748)
Diffstat (limited to 'Modules/getaddrinfo.c')
-rw-r--r--Modules/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c
index 06e87bfc8c..5aaa6e7c81 100644
--- a/Modules/getaddrinfo.c
+++ b/Modules/getaddrinfo.c
@@ -251,7 +251,7 @@ getaddrinfo(const char*hostname, const char*servname,
if (firsttime) {
/* translator hack */
{
- char *q = getenv("GAI");
+ const char *q = getenv("GAI");
if (q && inet_pton(AF_INET6, q, &faith_prefix) == 1)
translate = YES;
}