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

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

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

View File

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