[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5578: misc cosmetics: prettyprinting, drop pointless parentheses

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Mon, 31 Jan 2011 20:24:28 -0000

------------------------------------------------------------
revno: 5578
committer: Diego Biurrun <diego@xxxxxxxxxx>
branch nick: hipl
timestamp: Mon 2011-01-31 20:54:26 +0100
message:
  misc cosmetics: prettyprinting, drop pointless parentheses
modified:
  hipd/cert.c
  hipd/esp_prot_hipd_msg.c
  lib/core/message.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 'hipd/cert.c'
--- hipd/cert.c 2011-01-12 20:13:14 +0000
+++ hipd/cert.c 2011-01-31 19:54:26 +0000
@@ -670,8 +670,8 @@
     char                            saltname[45];
     struct in6_addr                *issuer_hit_n;
     struct hip_host_id             *host_id;
-    RSA                            *rsa = NULL;
-    DSA                            *dsa = NULL;
+    RSA                            *rsa          = NULL;
+    DSA                            *dsa          = NULL;
     unsigned char                  *der_cert     = NULL;
     int                             der_cert_len = 0;
     char                            arg1[21];

=== modified file 'hipd/esp_prot_hipd_msg.c'
--- hipd/esp_prot_hipd_msg.c    2011-01-31 14:57:40 +0000
+++ hipd/esp_prot_hipd_msg.c    2011-01-31 19:54:26 +0000
@@ -245,7 +245,7 @@
     int                          hash_item_length         = 0;
     unsigned char                cmp_val[MAX_HASH_LENGTH] = { 0 };
     int                          err                      = 0;
-    long                         num_parallel_hchains     = 0, i;
+    long                         i, num_parallel_hchains  = 0;
 
     param     = hip_get_param(msg, HIP_PARAM_HIT);
     local_hit = hip_get_param_contents_direct(param);
@@ -1090,7 +1090,7 @@
     const struct hip_tlv_common  *param                      = NULL;
     int                           hash_length                = 0;
     unsigned char                 cmp_value[MAX_HASH_LENGTH] = { 0 };
-    int                           err                        = 0, i;
+    int                           i, err                     = 0;
 
     HIP_ASSERT(spi != NULL);
 

=== modified file 'lib/core/message.c'
--- lib/core/message.c  2011-01-31 19:53:21 +0000
+++ lib/core/message.c  2011-01-31 19:54:26 +0000
@@ -540,8 +540,8 @@
                                     int is_ipv4)
 {
     struct sockaddr_storage addr_from, addr_to = { 0 };
-    struct sockaddr_in     *addr_from4 = ((struct sockaddr_in *) &addr_from);
-    struct sockaddr_in6    *addr_from6 = ((struct sockaddr_in6 *) &addr_from);
+    struct sockaddr_in     *addr_from4 = (struct sockaddr_in *) &addr_from;
+    struct sockaddr_in6    *addr_from6 = (struct sockaddr_in6 *) &addr_from;
     struct cmsghdr         *cmsg       = NULL;
     struct msghdr           msg;
     union {

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5578: misc cosmetics: prettyprinting, drop pointless parentheses - noreply