[gssdp] net-posix: Use proper in type for bits_map



commit 6daf7f029672f86d400f65b2bc5dfbcc2f251852
Author: Jens Georg <mail jensge org>
Date:   Mon Nov 12 12:42:42 2018 +0100

    net-posix: Use proper in type for bits_map
    
    If we want to use -1, should be int, not uint

 libgssdp/gssdp-net-posix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgssdp/gssdp-net-posix.c b/libgssdp/gssdp-net-posix.c
index 33c5c22..c793fc4 100644
--- a/libgssdp/gssdp-net-posix.c
+++ b/libgssdp/gssdp-net-posix.c
@@ -305,7 +305,7 @@ static GInetAddressMask *
 get_netmask (struct sockaddr *address,
              struct sockaddr *mask)
 {
-        static const guint8 bits_map[] = {
+        static const gint8 bits_map[] = {
                  0, -1, -1, -1,
                 -1, -1, -1, -1,
                  1, -1, -1, -1,


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