[hipl-commit] [trunk] Rev 4381: whitespace cosmetics

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 21 Apr 2010 12:25:42 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 21/04/2010 at 12:25:42
Revision: 4381
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  whitespace cosmetics

Modified:
  M  lib/opphip/wrap.c

=== modified file 'lib/opphip/wrap.c'
--- lib/opphip/wrap.c   2010-04-21 09:20:19 +0000
+++ lib/opphip/wrap.c   2010-04-21 09:25:35 +0000
@@ -77,11 +77,10 @@
 /** Symbolic names for wrapper handler array. Must be filled in the same order 
as
  * @c dl_function_ptr array.
  */
-void *dl_function_name[] =
-{"socket",  "bind", "connect",  "send",    "sendto",
- "sendmsg", "recv", "recvfrom", "recvmsg", "accept",
- "write",   "read", "close",    "listen",  "readv",
- "writev",  "poll"};
+void *dl_function_name[] = { "socket",  "bind", "connect",  "send",    
"sendto",
+                             "sendmsg", "recv", "recvfrom", "recvmsg", 
"accept",
+                             "write",   "read", "close",    "listen",  "readv",
+                             "writev",  "poll"};
 
 /**
  * Initialize the @c dl_function_fd array to support wrapping of socket calls
@@ -94,7 +93,7 @@
     char *error = NULL;
 
     for (i = 0; i < NUMBER_OF_DLSYM_FUNCTIONS; i++) {
-        dl_function_fd[i]                = dlopen(SOFILE, RTLD_LAZY);
+        dl_function_fd[i] = dlopen(SOFILE, RTLD_LAZY);
         HIP_ASSERT(dl_function_fd[i]);
         ((int **) (&dl_function_ptr))[i] =
             dlsym(dl_function_fd[i], dl_function_name[i]);
@@ -231,9 +230,9 @@
 {
     HIP_ASSERT(entry);
 
-    if (!(entry->protocol == 0 ||
-          entry->protocol == IPPROTO_TCP ||
-          entry->protocol == IPPROTO_UDP ||
+    if (!(entry->protocol == 0            ||
+          entry->protocol == IPPROTO_TCP  ||
+          entry->protocol == IPPROTO_UDP  ||
           entry->protocol == IPPROTO_ICMP ||
           entry->protocol == IPPROTO_ICMPV6)) {
         return 0;
@@ -244,7 +243,7 @@
     }
 
     if (!(entry->type == SOCK_STREAM ||
-          entry->type == SOCK_DGRAM ||
+          entry->type == SOCK_DGRAM  ||
           entry->type == SOCK_RAW)) {
         return 0;
     }
@@ -893,7 +892,7 @@
         *translated_socket = &entry->translated_socket;
         *translated_id     = (struct sockaddr *)
                              (is_peer ? &entry->translated_peer_id :
-                          &entry->translated_local_id);
+                              &entry->translated_local_id);
         *translated_id_len =
             (is_peer ? &entry->translated_peer_id_len :
              &entry->translated_local_id_len);

Other related posts:

  • » [hipl-commit] [trunk] Rev 4381: whitespace cosmetics - Diego Biurrun