------------------------------------------------------------ revno: 5520 committer: Henrik Ziegeldorf <henrik.ziegeldorf@xxxxxxxxxxxxxx> branch nick: hipl timestamp: Fri 2011-01-14 18:01:00 +0100 message: Const correctness for functions load_dsa_file() and load_rsa_file(). modified: firewall/rule_management.c -- lp:hipl https://code.launchpad.net/~hipl-core/hipl/trunk Your team HIPL core team is subscribed to branch lp:hipl. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'firewall/rule_management.c' --- firewall/rule_management.c 2011-01-11 13:59:46 +0000 +++ firewall/rule_management.c 2011-01-14 17:01:00 +0000 @@ -386,7 +386,7 @@ * * @return 0 on success, negative on error */ -static int load_rsa_file(FILE *fp, struct hip_host_id *hi) +static int load_rsa_file(FILE *fp, struct hip_host_id *const hi) { int err = 0; RSA *rsa = NULL; @@ -420,7 +420,7 @@ * * @return 0 on success, negative on error */ -static int load_dsa_file(FILE *fp, struct hip_host_id *hi) +static int load_dsa_file(FILE *fp, struct hip_host_id *const hi) { int err = 0; DSA *dsa = NULL;