Browse Source

branches/zip: trx_weight_cmp(): Add const qualifiers.

pull/374/head
marko 19 years ago
parent
commit
26d6ea5627
  1. 6
      include/trx0trx.h
  2. 6
      trx/trx0trx.c

6
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{

6
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;

Loading…
Cancel
Save