summaryrefslogtreecommitdiffstats
path: root/epan/except.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /epan/except.c
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/except.c')
-rw-r--r--epan/except.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/except.c b/epan/except.c
index 9a6207e0..6aaf63f4 100644
--- a/epan/except.c
+++ b/epan/except.c
@@ -143,11 +143,11 @@ static int init_counter;
static void unhandled_catcher(except_t *);
static void (*uh_catcher_ptr)(except_t *) = unhandled_catcher;
/* We need this 'size_t' cast due to a glitch in GLib where g_malloc was prototyped
- * as 'gpointer g_malloc (gulong n_bytes)'. This was later fixed to the correct prototype
- * 'gpointer g_malloc (gsize n_bytes)'. In Wireshark we use the latter prototype
+ * as 'void *g_malloc (unsigned long n_bytes)'. This was later fixed to the correct prototype
+ * 'void *g_malloc (size_t n_bytes)'. In Wireshark we use the latter prototype
* throughout the code. We can get away with this even with older versions of GLib by
* adding a '(void *(*)(size_t))' cast whenever we refer to g_malloc. The only platform
- * supported by Wireshark where this isn't safe (sizeof size_t != sizeof gulong) is Win64.
+ * supported by Wireshark where this isn't safe (sizeof size_t != sizeof unsigned long) is Win64.
* However, we _always_ bundle the newest version of GLib on this platform so
* the size_t issue doesn't exists here. Pheew.. */
static void *(*allocator)(size_t) = (void *(*)(size_t)) g_malloc;