Skip to content

Commit

Permalink
make it pre C99 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
catkira committed Nov 7, 2024
1 parent 6b35a65 commit 0ee5b21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iiod-responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ void iiod_responder_destroy(struct iiod_responder *priv)

iio_task_destroy(priv->write_task);

for (unsigned int i = 0; i < priv->default_io_pool_size; i++) {
unsigned int i;
for (i = 0; i < priv->default_io_pool_size; i++) {
iiod_io_unref(priv->default_io_pool[i]);
}

Expand Down Expand Up @@ -799,7 +800,8 @@ iiod_responder_get_default_io(struct iiod_responder *priv)
{
int idx = -1;
const uint64_t thid = iio_curr_thid();
for (unsigned int i = 0; i < priv->default_io_pool_size; i++) {
unsigned int i;
for (i = 0; i < priv->default_io_pool_size; i++) {
if (priv->default_io_pool_thread_ids[i] == thid) {
idx = i;
break;
Expand Down

0 comments on commit 0ee5b21

Please sign in to comment.