Skip to content

Commit

Permalink
avoid compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Dec 13, 2023
1 parent 2b622f9 commit c1eeb55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sflow_xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ extern "C" {
sfd_xdr_enc_bytes(buf, mac, 6);
}

static uint32_t sfd_xdr_enc_ip(SFDBuf *buf, SFLAddress *ip) {
static void sfd_xdr_enc_ip(SFDBuf *buf, SFLAddress *ip) {
SFD_ASSERT(buf->cursor < (SFD_MAX_SAMPLE_QUADS-2));
sfd_xdr_enc_int32(buf, ip->type);
if(ip->type == SFLADDRESSTYPE_IP_V6)
Expand Down
2 changes: 1 addition & 1 deletion src/sflowtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -4060,7 +4060,7 @@ static void readFlowSample(SFSample *sample, int expanded)
static char *getReasonCodeName(int reasonCode) {
int entries = sizeof(sflow_codes) / sizeof(sflow_codes[0]);
for(int ii = 0; ii < entries; ii++) {
if((reasonCode == sflow_codes[ii].code))
if(reasonCode == sflow_codes[ii].code)
return sflow_codes[ii].name;
}
return NULL;
Expand Down

0 comments on commit c1eeb55

Please sign in to comment.