[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add braces around a two-line code block.



commit 218193d38d2cebc72123255f8035fe3fa02d3dc5
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Thu Feb 9 11:25:48 2012 +0100

    Add braces around a two-line code block.
---
 src/or/geoip.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/or/geoip.c b/src/or/geoip.c
index d3dcc4f..a72319d 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -270,9 +270,10 @@ int
 geoip_get_country_by_addr(const tor_addr_t *addr)
 {
   uint32_t ipaddr;
-  if (tor_addr_family(addr) != AF_INET)
+  if (tor_addr_family(addr) != AF_INET) {
     /*XXXX IP6 support ipv6 geoip.*/
     return -1;
+  }
   ipaddr = tor_addr_to_ipv4h(addr);
   return geoip_get_country_by_ip(ipaddr);
 }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits