Polish: use seq_inc() macro

parent 8409356f
......@@ -1991,10 +1991,7 @@ logbuffer_recycle(struct fellow_fd *ffd, struct fellow_logbuffer *lbuf,
memset(&lbuf->dle_stats, 0, sizeof lbuf->dle_stats);
lbuf->logreg = logreg;
lbuf->state = LBUF_INIT;
//lbuf->id = seq_inc(ffd->logbuf_id);
lbuf->id = ((ffd->logbuf_id == 0) ?
ffd->logbuf_id = 2, 1 :
(typeof(ffd->logbuf_id))ffd->logbuf_id++);
lbuf->id = seq_inc(ffd->logbuf_id);
lbuf->seq = 1;
lbuf->flush_seq = 1;
lbuf->head_seq[0] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment