set const modifier for parameters of the compare functions

This commit is contained in:
Stas Degteff 2005-09-10 20:58:02 +00:00
parent 37be6671b1
commit 9071364470

View File

@ -3,6 +3,7 @@
// The Goldware Utilities. // The Goldware Utilities.
// Copyright (C) 1990-1999 Odinn Sorensen // Copyright (C) 1990-1999 Odinn Sorensen
// Copyright (C) 1999-2001 Alexander S. Aganichev // Copyright (C) 1999-2001 Alexander S. Aganichev
// Copyright (C) 2005 Stas Degteff
// ------------------------------------------------------------------ // ------------------------------------------------------------------
// This program is free software; you can redistribute it and/or // This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as // modify it under the terms of the GNU General Public License as
@ -367,7 +368,7 @@ static char* make_addr_str(char* str, Addr* addr, char* domain) {
// ------------------------------------------------------------------ // ------------------------------------------------------------------
// Compare two nodes by name/address/file/pos // Compare two nodes by name/address/file/pos
static bool cmp_nnlsts(_GEIdx A, _GEIdx B) { static bool cmp_nnlsts(const _GEIdx A, const _GEIdx B) {
int cmp; int cmp;
@ -390,7 +391,7 @@ static bool cmp_nnlsts(_GEIdx A, _GEIdx B) {
// ------------------------------------------------------------------ // ------------------------------------------------------------------
// Compare two nodes by address/name/file/pos // Compare two nodes by address/name/file/pos
static bool cmp_anlsts(_GEIdx A, _GEIdx B) { static bool cmp_anlsts(const _GEIdx A, const _GEIdx B) {
int cmp; int cmp;