aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 11:04:54 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 11:04:54 (GMT)
commit4b38b0d68956bcaa7e47fd46941a8b9fc72cc692 (patch)
treecdde897ab3814e8264a2e2e09ffcc4c1d0d40530 /src/callbacks.c
parent58c707029d7a4d1632c1bdc51b52891397570716 (diff)
callbacks: fix the notification functions
As warned by gcc, the way it is, those functions do nothing, as they're not passing a pointer to the data that should be updated. Fix them. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.c')
-rw-r--r--src/callbacks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 2a7884e..8ce2ec3 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -197,32 +197,32 @@ void rts_func (GtkWidget * rb, cam_t *cam)
void
gconf_notify_func (GConfClient * client, guint cnxn_id, GConfEntry * entry,
- char *str)
+ char **str)
{
GConfValue *value;
value = gconf_entry_get_value (entry);
- str = g_strdup (gconf_value_get_string (value));
+ *str = g_strdup (gconf_value_get_string (value));
}
void
gconf_notify_func_bool (GConfClient * client, guint cnxn_id,
- GConfEntry * entry, gboolean val)
+ GConfEntry * entry, gboolean *val)
{
GConfValue *value;
value = gconf_entry_get_value (entry);
- val = gconf_value_get_bool (value);
+ *val = gconf_value_get_bool (value);
}
void
gconf_notify_func_int (GConfClient * client, guint cnxn_id,
- GConfEntry * entry, int val)
+ GConfEntry * entry, int *val)
{
GConfValue *value;
value = gconf_entry_get_value (entry);
- val = gconf_value_get_int (value);
+ *val = gconf_value_get_int (value);
}

Privacy Policy