Skip to content

Commit 7d6ae0e

Browse files
stepanblyschakyxieca
authored andcommitted
[fpmsyncd] align port variable type with sockaddr_in.sin_port (sonic-net#831)
Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 640547a commit 7d6ae0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fpmsyncd/fpmlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using namespace swss;
1010
using namespace std;
1111

12-
FpmLink::FpmLink(int port) :
12+
FpmLink::FpmLink(unsigned short port) :
1313
MSG_BATCH_SIZE(256),
1414
m_bufSize(FPM_MAX_MSG_LEN * MSG_BATCH_SIZE),
1515
m_messageBuffer(NULL),

fpmsyncd/fpmlink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace swss {
1919
class FpmLink : public Selectable {
2020
public:
2121
const int MSG_BATCH_SIZE;
22-
FpmLink(int port = FPM_DEFAULT_PORT);
22+
FpmLink(unsigned short port = FPM_DEFAULT_PORT);
2323
virtual ~FpmLink();
2424

2525
/* Wait for connection (blocking) */

0 commit comments

Comments
 (0)