Skip to content

Commit aba7889

Browse files
committed
Add 'const' for parameter declaration, as @AlexPeshkoff suggested
1 parent 56ac201 commit aba7889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/remote/remote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ bool RBlobInfo::getLocalInfo(unsigned int itemsLength, const unsigned char* item
901901
}
902902

903903

904-
void RBlobInfo::parseInfo(unsigned int bufferLength, unsigned char* buffer)
904+
void RBlobInfo::parseInfo(unsigned int bufferLength, const unsigned char* buffer)
905905
{
906906
int c = 0;
907907
valid = false;

src/remote/remote.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ struct RBlobInfo
235235
}
236236

237237
// parse into response into m_info, assume buffer contains all known info items
238-
void parseInfo(unsigned int bufferLength, unsigned char* buffer);
238+
void parseInfo(unsigned int bufferLength, const unsigned char* buffer);
239239

240240
// returns false if there is no valid local info or if unknown item encountered
241241
bool getLocalInfo(unsigned int itemsLength, const unsigned char* items,

0 commit comments

Comments
 (0)