[hipl-commit] [trunk] Rev 4727: hipd: remove zero-initializers for global structures.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 9 Jun 2010 02:19:22 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 09/06/2010 at 02:19:22
Revision: 4727
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: remove zero-initializers for global structures.
  Those variables are stored in the BSS.

Modified:
  M  hipd/hipd.c

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-05-31 09:44:40 +0000
+++ hipd/hipd.c 2010-06-08 23:18:38 +0000
@@ -65,11 +65,11 @@
 struct sockaddr_un hip_user_addr;
 
 /** For receiving netlink IPsec events (acquire, expire, etc) */
-struct rtnl_handle hip_nl_ipsec      = {0};
+struct rtnl_handle hip_nl_ipsec;
 
 /** For getting/setting routes and adding HITs (it was not possible to use
  *  nf_ipsec for this purpose). */
-struct rtnl_handle hip_nl_route = { 0 };
+struct rtnl_handle hip_nl_route;
 
 struct sockaddr_in6 hip_firewall_addr;
 int hip_firewall_sock                    = 0;

Other related posts:

  • » [hipl-commit] [trunk] Rev 4727: hipd: remove zero-initializers for global structures. - Mircea Gherzan