Skip to content

Commit

Permalink
fix compiling issue for gcc8.3 (#1339)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan authored Jul 2, 2020
1 parent 9b13120 commit 01f810f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mclagsyncd/mclaglink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ ssize_t MclagLink::getFdbChange(char *msg_buf)
return write;
}

MclagLink::MclagLink(int port) :
MclagLink::MclagLink(uint16_t port) :
MSG_BATCH_SIZE(256),
m_bufSize(MCLAG_MAX_MSG_LEN * MSG_BATCH_SIZE),
m_messageBuffer(NULL),
Expand Down
2 changes: 1 addition & 1 deletion mclagsyncd/mclaglink.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class MclagLink : public Selectable {
RedisClient *p_redisClient_to_counters;/*redis client access to COUNTERS_DB*/
std::set <mclag_fdb> *p_old_fdb;

MclagLink(int port = MCLAG_DEFAULT_PORT);
MclagLink(uint16_t port = MCLAG_DEFAULT_PORT);
virtual ~MclagLink();

/* Wait for connection (blocking) */
Expand Down

0 comments on commit 01f810f

Please sign in to comment.