sd-bus: make rqueue/wqueue sizes of type size_t
Let's do this like we usually do and size arrays with size_t. We already do this for the "allocated" counter correctly, and externally we expose the queue sizes as uint64_t anyway, hence there's really no point in usigned "unsigned" internally.
This commit is contained in:
parent
2fe9a10d76
commit
143d4e045a
|
@ -219,11 +219,11 @@ struct sd_bus {
|
|||
size_t rbuffer_size;
|
||||
|
||||
sd_bus_message **rqueue;
|
||||
unsigned rqueue_size;
|
||||
size_t rqueue_size;
|
||||
size_t rqueue_allocated;
|
||||
|
||||
sd_bus_message **wqueue;
|
||||
unsigned wqueue_size;
|
||||
size_t wqueue_size;
|
||||
size_t windex;
|
||||
size_t wqueue_allocated;
|
||||
|
||||
|
|
|
@ -2125,7 +2125,7 @@ _public_ int sd_bus_call(
|
|||
_cleanup_(sd_bus_message_unrefp) sd_bus_message *m = sd_bus_message_ref(_m);
|
||||
usec_t timeout;
|
||||
uint64_t cookie;
|
||||
unsigned i;
|
||||
size_t i;
|
||||
int r;
|
||||
|
||||
bus_assert_return(m, -EINVAL, error);
|
||||
|
|
Loading…
Reference in New Issue