version 1.198, 2008/06/12 15:19:17 |
version 1.199, 2008/06/12 21:06:25 |
|
|
struct global_confirm *gc, *first_gc; |
struct global_confirm *gc, *first_gc; |
|
|
/* Coalesce identical callbacks */ |
/* Coalesce identical callbacks */ |
first_gc = TAILQ_FIRST(&global_confirms); |
first_gc = TAILQ_LAST(&global_confirms, global_confirms); |
if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) { |
if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) { |
if (++first_gc->ref_count >= INT_MAX) |
if (++first_gc->ref_count >= INT_MAX) |
fatal("%s: first_gc->ref_count = %d", |
fatal("%s: first_gc->ref_count = %d", |