summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2024-01-28 19:33:45 -0800
committerPatrick <tingping@tingping.se>2024-01-29 09:06:29 -0600
commit180ce9f4fde4f87150b69e0cf40873226dbb9455 (patch)
treeab06067c073e03d3d34d8e39674b9c647375894f /plugins
parent0c4878554323e6cd9a60b3dd5b19ffccb40dfb63 (diff)
Change various types to the correct signedness to avoid warnings.
Also cast the check of "inet_addr" to guint32. The POSIX declaration
of this function returns in_addr_t which is the same as uint32_t.
Windows does not define this type and instead uses unsigned long.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fishlim/fish.c3
-rw-r--r--plugins/fishlim/tests/tests.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/fishlim/fish.c b/plugins/fishlim/fish.c
index 7fe7e287..0b24ed48 100644
--- a/plugins/fishlim/fish.c
+++ b/plugins/fishlim/fish.c
@@ -145,7 +145,8 @@ void fish_deinit(void)
  */
 char *fish_base64_encode(const char *message, size_t message_len) {
     BF_LONG left = 0, right = 0;
-    int i, j;
+    int i;
+    size_t j;
     char *encoded = NULL;
     char *end = NULL;
     char *msg = NULL;
diff --git a/plugins/fishlim/tests/tests.c b/plugins/fishlim/tests/tests.c
index 12b10d1d..553816d3 100644
--- a/plugins/fishlim/tests/tests.c
+++ b/plugins/fishlim/tests/tests.c
@@ -36,7 +36,7 @@ static void
 random_string(char *out, size_t len)
 {
     GRand *rand = NULL;
-    int i = 0;
+    size_t i = 0;
 
     rand = g_rand_new();
     for (i = 0; i < len; ++i) {