summaryrefslogtreecommitdiff
path: root/gio/gthreadedresolver.h
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-12-15 16:55:57 +0000
committerPhilip Withnall <pwithnall@endlessos.org>2021-12-15 17:04:20 +0000
commit4d6da4457a80fc2cea4d0e3a1f332107a28b067d (patch)
tree903d0652e5fcd35406fdd248ca22838552da0e8c /gio/gthreadedresolver.h
parent49e667d250ca4e5ba9cb9c93c467c6196d16601c (diff)
downloadglib-4d6da4457a80fc2cea4d0e3a1f332107a28b067d.tar.gz
gthreadedresolver: Tighten up types and constness of parsing code
Not everything should be an int. This code is quite dated. We now try to use `guint8*` to represent arbitrary binary data, rather than `guchar*` (which makes it sound like some form of string). Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Diffstat (limited to 'gio/gthreadedresolver.h')
-rw-r--r--gio/gthreadedresolver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/gthreadedresolver.h b/gio/gthreadedresolver.h
index 9b0f98222..95a5fe55f 100644
--- a/gio/gthreadedresolver.h
+++ b/gio/gthreadedresolver.h
@@ -46,8 +46,8 @@ GType g_threaded_resolver_get_type (void) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
GList *g_resolver_records_from_res_query (const gchar *rrname,
gint rrtype,
- guchar *answer,
- gint len,
+ const guint8 *answer,
+ gssize len,
gint herr,
GError **error);