ifnet: misc fixes (constness, error initialization) (bgo #670508)

This commit is contained in:
Dan Williams
2012-02-25 20:48:13 -06:00
parent 4641649cc1
commit e41218caaa
3 changed files with 4 additions and 4 deletions

View File

@@ -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);