------------------------------------------------------------ revno: 5581 committer: Diego Biurrun <diego@xxxxxxxxxx> branch nick: hipl timestamp: Mon 2011-01-31 21:21:37 +0100 message: Simplify an if-condition in hip_build_host_id_from_param(). modified: lib/core/builder.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 'lib/core/builder.c' --- lib/core/builder.c 2011-01-31 20:20:45 +0000 +++ lib/core/builder.c 2011-01-31 20:21:37 +0000 @@ -3142,7 +3142,7 @@ /* sanity checks */ HIP_IFEL(!wire_host_id, -1, "Given host identity is NULL.\n"); HIP_IFEL(!peer_host_id, -1, "Cannot write return value to NULL-pointer.\n"); - HIP_IFEL(!(hip_get_param_type(wire_host_id) == HIP_PARAM_HOST_ID), + HIP_IFEL(hip_get_param_type(wire_host_id) != HIP_PARAM_HOST_ID, -1, "Param has wrong type (not HIP_PARAM_HOST_ID)"); // copy the header, key and fqdn