Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix mixed declarations and code (forbidden by ISO C90)
  • Loading branch information
miniupnp committed Feb 16, 2015
1 parent 746d2c5 commit 0c7f217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/regress_bufferevent.c
Expand Up @@ -233,10 +233,11 @@ static lock_wrapper *lu_find(void *lock_)

static void *trace_lock_alloc(unsigned locktype)
{
void *lock;
++lu_base.nr_locks;
lu_base.locks = realloc(lu_base.locks,
sizeof(lock_wrapper) * lu_base.nr_locks);
void *lock = lu_base.cbs.alloc(locktype);
lock = lu_base.cbs.alloc(locktype);
lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 };
return lock;
}
Expand Down

0 comments on commit 0c7f217

Please sign in to comment.