[hipl-dev] [Branch ~hipl-core/hipl/ecc] Rev 5326: cosmetics: Put better linebreaks in HIP_IFELs in builder.c.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Mon, 10 Jan 2011 09:23:27 -0000

------------------------------------------------------------
revno: 5326
committer: Henrik Ziegeldorf <henrik.ziegeldorf@xxxxxxxxxxxxxx>
branch nick: ecc
timestamp: Mon 2011-01-10 10:21:56 +0100
message:
  cosmetics: Put better linebreaks in HIP_IFELs in builder.c.
modified:
  lib/core/builder.c


--
lp:~hipl-core/hipl/ecc
https://code.launchpad.net/~hipl-core/hipl/ecc

Your team HIPL core team is subscribed to branch lp:~hipl-core/hipl/ecc.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/ecc/+edit-subscription
=== modified file 'lib/core/builder.c'
--- lib/core/builder.c  2011-01-08 16:58:19 +0000
+++ lib/core/builder.c  2011-01-10 09:21:56 +0000
@@ -3156,10 +3156,8 @@
     uint16_t fqdn_len;
 
     /* 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(!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),
              -1, "Param has wrong type (not HIP_PARAM_HOST_ID)");
 
@@ -3218,10 +3216,8 @@
     uint16_t par_len;
 
     // sanity checks
-    HIP_IFEL(!msg,
-             -1, "Cannot build host id parameter into given message (msg is 
NULL) \n");
-    HIP_IFEL(!host_id,
-             -1, "Cannot build host id parameter with no host id input (host 
id is NULL) \n");
+    HIP_IFEL(!msg,      -1, "Cannot build host id parameter into given message 
(msg is NULL) \n");
+    HIP_IFEL(!host_id,  -1, "Cannot build host id parameter with no host id 
input (host id is NULL) \n");
 
     // eliminate unused space by copying fqdn directly behind the keyrr
     header_len  = sizeof(struct hip_host_id) -

Other related posts: