mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 10:46:59 +00:00
glib-aux: fix NM_AUTO_PROTECT_ERRNO() macro
This commit is contained in:
parent
067893f8d3
commit
95208e0655
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue