]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Updated to addition of const qualifier to GAVL keys in ULUT library
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 7 Jan 2009 15:23:01 +0000 (16:23 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 7 Jan 2009 15:23:01 +0000 (16:23 +0100)
fres/cbroker/fcb.c
fres/resalloc/fra_registry.c

index 9bcbddc8341074c4701b388beea6dca6d41e06bd..8a2ee7a571983efe1be324268c0020d56511b6c6 100644 (file)
@@ -131,7 +131,8 @@ void fcb_contract_destroy(struct fcb_contract *fcb_contract)
        free(fcb_contract);
 }
 
-static inline int res_key_cmp(struct res_key *a, struct res_key *b)
+static inline int res_key_cmp(const struct res_key *a,
+                             const struct res_key *b)
 {
        if (a->type < b->type) {
                return -1;
index 58b0405b2a7d57a2657cf89efbb67dbe9747c66a..61075582726ff4b1c8cbe6d07011d41b11cb4f3e 100644 (file)
@@ -39,8 +39,8 @@ static struct registry {
 } registry;
 
 
-static inline int fres_allocator_cmp(struct fres_allocator **a,
-                                    struct fres_allocator **b)
+static inline int fres_allocator_cmp(struct fres_allocator * const *a,
+                                    struct fres_allocator * const *b)
 {
        if ((*a)->res_type < (*b)->res_type) {
                return -1;