mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio: Use g_strerror() instead of strerror()
This marginally improves thread safety, and marginally improves consistency. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=733821
This commit is contained in:
@@ -260,7 +260,7 @@ ensure_keyring_directory (GError **error)
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error when getting information for directory “%s”: %s"),
|
||||
path,
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
g_free (path);
|
||||
path = NULL;
|
||||
goto out;
|
||||
@@ -293,7 +293,7 @@ ensure_keyring_directory (GError **error)
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error creating directory “%s”: %s"),
|
||||
path,
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
g_free (path);
|
||||
path = NULL;
|
||||
goto out;
|
||||
@@ -531,7 +531,7 @@ keyring_acquire_lock (const gchar *path,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error deleting stale lock file “%s”: %s"),
|
||||
lock,
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
_log ("Deleted stale lock file '%s'", lock);
|
||||
@@ -563,7 +563,7 @@ keyring_acquire_lock (const gchar *path,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error creating lock file “%s”: %s"),
|
||||
lock,
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -593,7 +593,7 @@ keyring_release_lock (const gchar *path,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error closing (unlinked) lock file “%s”: %s"),
|
||||
lock,
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
if (g_unlink (lock) != 0)
|
||||
@@ -603,7 +603,7 @@ keyring_release_lock (const gchar *path,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error unlinking lock file “%s”: %s"),
|
||||
lock,
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user