mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 17:00:29 +01:00
ifnet: misc fixes (constness, error initialization) (bgo #670508)
This commit is contained in:
parent
4641649cc1
commit
e41218caaa
3 changed files with 4 additions and 4 deletions
|
|
@ -419,7 +419,7 @@ ifnet_get_data (const char *conn_name, const char *key)
|
|||
|
||||
/* format ip values for comparison */
|
||||
static gchar*
|
||||
format_ip_for_comparison (gchar * value)
|
||||
format_ip_for_comparison (const gchar * value)
|
||||
{
|
||||
gchar **ipset;
|
||||
guint length, i;
|
||||
|
|
|
|||
|
|
@ -951,11 +951,11 @@ get_dhcp_hostname_and_client_id (char **hostname, char **client_id)
|
|||
g_free (contents);
|
||||
}
|
||||
|
||||
void backup_file (gchar* target)
|
||||
void backup_file (const gchar* target)
|
||||
{
|
||||
GFile *source, *backup;
|
||||
gchar* backup_path;
|
||||
GError **error;
|
||||
GError **error = NULL;
|
||||
|
||||
source = g_file_new_for_path (target);
|
||||
backup_path = g_strdup_printf ("%s.bak", target);
|
||||
|
|
|
|||
|
|
@ -77,5 +77,5 @@ gboolean is_true (const char *str);
|
|||
|
||||
void get_dhcp_hostname_and_client_id (char **hostname, char **client_id);
|
||||
|
||||
void backup_file (gchar* target);
|
||||
void backup_file (const gchar* target);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue