Skip to content

Commit 0244fa1

Browse files
committed
[Cleanup] Minor change to method signature.
The method input parameter has been changed to a const.
1 parent 47e02c0 commit 0244fa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Win32_Interop/Win32_FDAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ BOOL ParseStorageAddress(const char *ip, int port, SOCKADDR_STORAGE* pSotrageAdd
11381138
return TRUE;
11391139
}
11401140

1141-
int StorageSize(SOCKADDR_STORAGE *ss) {
1141+
int StorageSize(const SOCKADDR_STORAGE *ss) {
11421142
switch (ss->ss_family) {
11431143
case AF_INET:
11441144
return sizeof(SOCKADDR_IN);

src/Win32_Interop/Win32_FDAPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int FDAPI_UpdateAcceptContext( int fd );
260260

261261
// other networking functions
262262
BOOL ParseStorageAddress(const char *ip, int port, SOCKADDR_STORAGE* pSotrageAddr);
263-
int StorageSize(SOCKADDR_STORAGE *ss);
263+
int StorageSize(const SOCKADDR_STORAGE *ss);
264264

265265
// macroize CRT definitions to point to our own
266266
#ifndef FDAPI_NOCRTREDEFS

0 commit comments

Comments
 (0)