[gssdp] net-posix: Style fixes



commit de9ca7076db6392ad03e5810d54484e6b90602d2
Author: Jens Georg <mail jensge org>
Date:   Tue Oct 30 13:12:37 2018 +0100

    net-posix: Style fixes

 libgssdp/gssdp-net-posix.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgssdp/gssdp-net-posix.c b/libgssdp/gssdp-net-posix.c
index 766b010..05edabd 100644
--- a/libgssdp/gssdp-net-posix.c
+++ b/libgssdp/gssdp-net-posix.c
@@ -139,16 +139,16 @@ sockaddr_to_string(struct sockaddr *addr,
     g_return_val_if_fail (family == AF_INET || family == AF_INET6, NULL);
 
     if (family == AF_INET) {
-        struct sockaddr_in *sa = (struct sockaddr_in *) addr;
-        buf = (char *)&sa->sin_addr;
+           struct sockaddr_in *sa = (struct sockaddr_in *) addr;
+            buf = (char *)&sa->sin_addr;
     } else {
-        struct sockaddr_in6 *sa = (struct sockaddr_in6 *) addr;
-        buf = (char *)&sa->sin6_addr;
+            struct sockaddr_in6 *sa = (struct sockaddr_in6 *) addr;
+            buf = (char *)&sa->sin6_addr;
     }
 
     retval = inet_ntop (family, buf, result_buf, result_buf_len);
     if (retval == NULL) {
-        g_warning ("Failed to convert address: %s", g_strerror(errno));
+            g_warning ("Failed to convert address: %s", g_strerror (errno));
     }
 
     return retval;


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