diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-12 13:55:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 13:55:04 +0200 |
commit | 4ae06c5337e01bdde28bce57b6b9166ad50947e3 (patch) | |
tree | 5e9e92f616bc452eb4096b56ea373fa8b46d2510 /Modules/getaddrinfo.c | |
parent | 5ce0a2a100909104836f53a2c8823006ec46f8ad (diff) | |
download | cpython-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.c | 2 |
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; } |