From 68c63af0165994d2daa2c2c8cc15dd1b21030662 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 19 Mar 2021 17:35:17 +0100 Subject: [PATCH] glib-aux: fix NM_AUTO_PROTECT_ERRNO() macro (cherry picked from commit 95208e0655331111733c46e3b4cda477f7a2eed4) --- shared/nm-glib-aux/nm-macros-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/nm-glib-aux/nm-macros-internal.h b/shared/nm-glib-aux/nm-macros-internal.h index cbda66ac2c..45ca9475be 100644 --- a/shared/nm-glib-aux/nm-macros-internal.h +++ b/shared/nm-glib-aux/nm-macros-internal.h @@ -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; }