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>
This commit is contained in:
Philip Withnall
2021-12-15 16:55:57 +00:00
parent 49e667d250
commit 4d6da4457a
2 changed files with 22 additions and 22 deletions

View File

@@ -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);