From 97d3e63d249b1e8b47dd99ac92e18dc305846b35 Mon Sep 17 00:00:00 2001 From: Rene Nyffenegger Date: Sat, 2 Feb 2019 21:01:27 +0100 Subject: [PATCH] Use const char* for constant characters --- mhook-test/mhook-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mhook-test/mhook-test.cpp b/mhook-test/mhook-test.cpp index 06c0b2d..9873aae 100644 --- a/mhook-test/mhook-test.cpp +++ b/mhook-test/mhook-test.cpp @@ -188,7 +188,7 @@ int wmain(int argc, WCHAR* argv[]) // in this context anyway. WSADATA wd = {0}; WSAStartup(MAKEWORD(2, 2), &wd); - char* ip = "localhost"; + const char* ip = "localhost"; struct addrinfo aiHints; struct addrinfo *res = NULL; memset(&aiHints, 0, sizeof(aiHints));