From 681d9e9f00f5bbeb49151b8c92bfb635bf87351e Mon Sep 17 00:00:00 2001 From: marko <> Date: Wed, 1 Aug 2007 08:01:47 +0000 Subject: [PATCH] branches/zip: trx_weight_cmp(): Add const qualifiers. --- include/trx0trx.h | 6 +++--- trx/trx0trx.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/trx0trx.h b/include/trx0trx.h index 19d80928f8b..970258b1315 100644 --- a/include/trx0trx.h +++ b/include/trx0trx.h @@ -379,9 +379,9 @@ considered heavier than ones that have not. */ int trx_weight_cmp( /*===========*/ - /* out: <0, 0 or >0; similar to strcmp(3) */ - trx_t* a, /* in: the first transaction to be compared */ - trx_t* b); /* in: the second transaction to be compared */ + /* out: <0, 0 or >0; similar to strcmp(3) */ + const trx_t* a, /* in: the first transaction to be compared */ + const trx_t* b); /* in: the second transaction to be compared */ /* Signal to a transaction */ struct trx_sig_struct{ diff --git a/trx/trx0trx.c b/trx/trx0trx.c index a6227c3e2f6..b2f9e515030 100644 --- a/trx/trx0trx.c +++ b/trx/trx0trx.c @@ -1751,9 +1751,9 @@ considered heavier than ones that have not. */ int trx_weight_cmp( /*===========*/ - /* out: <0, 0 or >0; similar to strcmp(3) */ - trx_t* a, /* in: the first transaction to be compared */ - trx_t* b) /* in: the second transaction to be compared */ + /* out: <0, 0 or >0; similar to strcmp(3) */ + const trx_t* a, /* in: the first transaction to be compared */ + const trx_t* b) /* in: the second transaction to be compared */ { ibool a_notrans_edit; ibool b_notrans_edit;