]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes.
authorTimo Sirainen <tss@iki.fi>
Thu, 10 Sep 2009 20:49:44 +0000 (16:49 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 10 Sep 2009 20:49:44 +0000 (16:49 -0400)
--HG--
branch : HEAD

src/lib-dict/dict-sql.c

index 47bd09272c6df63a93a8f3f4de5d36c54ec0c0af..adcd2f3900c0a2770e670a0c9001f6ae44b7a6d9 100644 (file)
@@ -493,7 +493,7 @@ sql_dict_transaction_commit(struct dict_transaction_context *_ctx,
                        ret = -1;
                } else {
                        while (ctx->inc_row != NULL) {
-                               i_assert(ctx->inc_row->rows != -1UL);
+                               i_assert(ctx->inc_row->rows != -1U);
                                if (ctx->inc_row->rows == 0) {
                                        ret = 0;
                                        break;
@@ -716,7 +716,7 @@ sql_dict_next_inc_row(struct sql_dict_transaction_context *ctx)
        }
        row = p_new(ctx->inc_row_pool, struct sql_dict_inc_row, 1);
        row->prev = ctx->inc_row;
-       row->rows = -1UL;
+       row->rows = -1U;
        ctx->inc_row = row;
        return &row->rows;
 }