Skip to content

Commit

Permalink
Use seqno_t as type for sequence numbers (which is defined as uint64_t)
Browse files Browse the repository at this point in the history
Signed-off-by: TheFixer <[email protected]>
  • Loading branch information
TheFixer committed Nov 18, 2022
1 parent 38ca65a commit e9a57d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/ddsc/include/dds/dds.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ typedef struct dds_sample_info
/** difference in generations between the sample and most recent sample of the same instance when read/take was called */
uint32_t absolute_generation_rank;
/** sequence number of the data (relative to the publisher); always 0 for invalid samples */
int64_t seq_no;
uint64_t seq_no;
}
dds_sample_info_t;

Expand Down
2 changes: 1 addition & 1 deletion src/core/ddsi/include/dds/ddsi/ddsi_serdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct ddsi_serdata {
/* these get set by generic code after creating the serdata */
ddsrt_wctime_t timestamp;
uint32_t statusinfo;
int64_t seq_no;
seqno_t seq_no;

/* FIXME: can I get rid of this one? */
ddsrt_mtime_t twrite; /* write time, not source timestamp, set post-throttling */
Expand Down
2 changes: 1 addition & 1 deletion src/core/ddsi/src/q_receive.c
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,7 @@ static int handle_Gap (struct receiver_state *rst, ddsrt_etime_t tnow, struct nn
return 1;
}

static struct ddsi_serdata *get_serdata (struct ddsi_sertype const * const type, const struct nn_rdata *fragchain, uint32_t sz, int justkey, unsigned statusinfo, ddsrt_wctime_t tstamp, int64_t seq_no)
static struct ddsi_serdata *get_serdata (struct ddsi_sertype const * const type, const struct nn_rdata *fragchain, uint32_t sz, int justkey, unsigned statusinfo, ddsrt_wctime_t tstamp, seqno_t seq_no)
{
struct ddsi_serdata *sd = ddsi_serdata_from_ser (type, justkey ? SDK_KEY : SDK_DATA, fragchain, sz);
if (sd)
Expand Down

0 comments on commit e9a57d6

Please sign in to comment.