From f87475ea870390ce4226d08e877b739f2e0b84ea Mon Sep 17 00:00:00 2001 From: Bart Jacobs Date: Wed, 25 Jan 2023 14:30:23 +0000 Subject: [PATCH 1/2] g_io_channel_get_line_term: add (out) annotation Fixes #2895 --- glib/giochannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/giochannel.c b/glib/giochannel.c index 6eb6ec717..6f37cf9cc 100644 --- a/glib/giochannel.c +++ b/glib/giochannel.c @@ -913,7 +913,7 @@ g_io_channel_set_line_term (GIOChannel *channel, /** * g_io_channel_get_line_term: * @channel: a #GIOChannel - * @length: a location to return the length of the line terminator + * @length: (out): a location to return the length of the line terminator * * This returns the string that #GIOChannel uses to determine * where in the file a line break occurs. A value of %NULL From 0815be81cec3a6432c14d441a0d7c3d75ede89b5 Mon Sep 17 00:00:00 2001 From: Bart Jacobs Date: Wed, 25 Jan 2023 14:49:30 +0000 Subject: [PATCH 2/2] g_io_channel_get_line_term: add (optional) annotation --- glib/giochannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/giochannel.c b/glib/giochannel.c index 6f37cf9cc..7572c47a2 100644 --- a/glib/giochannel.c +++ b/glib/giochannel.c @@ -913,7 +913,7 @@ g_io_channel_set_line_term (GIOChannel *channel, /** * g_io_channel_get_line_term: * @channel: a #GIOChannel - * @length: (out): a location to return the length of the line terminator + * @length: (out) (optional): a location to return the length of the line terminator * * This returns the string that #GIOChannel uses to determine * where in the file a line break occurs. A value of %NULL