Skip to content

Commit 1ae525a

Browse files
author
shine.chen
committed
refine readData function per selectable base-class change
Signed-off-by: shine.chen <[email protected]>
1 parent cae6a7b commit 1ae525a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mclagsyncd/mclaglink.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ int MclagLink::getFd()
640640
return m_connection_socket;
641641
}
642642

643-
void MclagLink::readData()
643+
uint64_t MclagLink::readData()
644644
{
645645
mclag_msg_hdr_t *hdr = NULL;
646646
size_t msg_len = 0;
@@ -715,6 +715,7 @@ void MclagLink::readData()
715715

716716
memmove(m_messageBuffer, m_messageBuffer + start, m_pos - start);
717717
m_pos = m_pos - (uint32_t)start;
718-
return;
718+
719+
return 0;
719720
}
720721

mclagsyncd/mclaglink.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MclagLink : public Selectable {
113113
void accept();
114114

115115
int getFd() override;
116-
void readData() override;
116+
uint64_t readData() override;
117117

118118
/* readMe throws MclagConnectionClosedException when connection is lost */
119119
class MclagConnectionClosedException : public std::exception

0 commit comments

Comments
 (0)