ifnet: misc fixes (constness, error initialization) (bgo #670508)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user