glib-aux: fix NM_AUTO_PROTECT_ERRNO() macro

(cherry picked from commit 95208e0655)
This commit is contained in:
Thomas Haller 2021-03-19 17:35:17 +01:00 committed by Beniamino Galvani
parent 38fdbe0739
commit 68c63af016

View file

@ -122,7 +122,7 @@ _nm_auto_free_gstring(GString **str)
#define nm_auto_free_gstring nm_auto(_nm_auto_free_gstring)
static inline void
_nm_auto_protect_errno(int *p_saved_errno)
_nm_auto_protect_errno(const int *p_saved_errno)
{
errno = *p_saved_errno;
}