Skip to content

Commit f2bb2ae

Browse files
Merge pull request #12 from ReneNyffenegger/const-char
Use const char* for constant characters
2 parents 28a2cfa + 97d3e63 commit f2bb2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mhook-test/mhook-test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ int wmain(int argc, WCHAR* argv[])
188188
// in this context anyway.
189189
WSADATA wd = {0};
190190
WSAStartup(MAKEWORD(2, 2), &wd);
191-
char* ip = "localhost";
191+
const char* ip = "localhost";
192192
struct addrinfo aiHints;
193193
struct addrinfo *res = NULL;
194194
memset(&aiHints, 0, sizeof(aiHints));

0 commit comments

Comments
 (0)