connection: Use uin32_t for circular buffer indexes
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 15 Oct 2012 21:16:30 +0000 (17:16 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 15 Oct 2012 21:16:30 +0000 (17:16 -0400)
commitad03a59f5cab9e853dc024c801b49aa3ef6d33ff
tree534312919efc7c123e3f0f44bae7bc8a8415a6de
parenta9dd3badb5ca24bed16b7ef9ae57088dbcb4a2e5
connection: Use uin32_t for circular buffer indexes

We rely on well-defined unsigned overflow behaviour so let's make the
index fields actually unsigned.  Signed ints aren't guaranteed to have the
behavior we want (could be either ones or twos complement).
src/connection.c