[or-cvs] [torsocks/master] Whitespace cleanups in common.c

hoganrobert at torproject.org hoganrobert at torproject.org
Mon Feb 14 21:30:19 UTC 2011


commit a03f0f1db0180d4ff738d02e3975f1cd64ec3f9d
Author: Robert Hogan <robert at roberthogan.net>
Date:   Mon Feb 14 20:55:13 2011 +0000

    Whitespace cleanups in common.c
---
 src/common.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/common.c b/src/common.c
index 3826d3b..d48e853 100644
--- a/src/common.c
+++ b/src/common.c
@@ -26,7 +26,7 @@
  ***************************************************************************/
 /* 
 
-    commmon.c    - Common routines for the tsocks package 
+    commmon.c    - Common routines for the torsocks package 
 
 */
 
@@ -61,9 +61,9 @@ int logstamp = 0;         /* Timestamp (and pid stamp) messages */
 uint16_t
 get_uint16(const char *cp)
 {
-  uint16_t v;
-  memcpy(&v,cp,2);
-  return v;
+    uint16_t v;
+    memcpy(&v,cp,2);
+    return v;
 }
 /**
  * Read a 32-bit value beginning at <b>cp</b>.  Equivalent to
@@ -73,9 +73,9 @@ get_uint16(const char *cp)
 uint32_t
 get_uint32(const char *cp)
 {
-  uint32_t v;
-  memcpy(&v,cp,4);
-  return v;
+    uint32_t v;
+    memcpy(&v,cp,4);
+    return v;
 }
 /**
  * Set a 16-bit value beginning at <b>cp</b> to <b>v</b>. Equivalent to
@@ -84,7 +84,7 @@ get_uint32(const char *cp)
 void
 set_uint16(char *cp, uint16_t v)
 {
-  memcpy(cp,&v,2);
+    memcpy(cp,&v,2);
 }
 /**
  * Set a 32-bit value beginning at <b>cp</b> to <b>v</b>. Equivalent to
@@ -93,7 +93,7 @@ set_uint16(char *cp, uint16_t v)
 void
 set_uint32(char *cp, uint32_t v)
 {
-  memcpy(cp,&v,4);
+    memcpy(cp,&v,4);
 }
 
 unsigned int resolve_ip(char *host, int showmsg, int allownames) {
@@ -204,16 +204,16 @@ void show_msg(int level, const char *fmt, ...) {
     if (logstamp) {
         fprintf(logfile, "(%d)", getpid());
     }
-    
+
     fputs(": ", logfile);
-      
+
     va_start(ap, fmt);
 
     /* Save errno */
     saveerr = errno;
 
     vfprintf(logfile, fmt, ap);
-    
+
     fflush(logfile);
 
     errno = saveerr;





More information about the tor-commits mailing list