Skip to content

Commit

Permalink
git-changebar: Rename bool for C23 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo committed Nov 25, 2024
1 parent 8d924fd commit f1148d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-changebar/src/gcb-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,9 +1411,9 @@ read_setting_boolean (GKeyFile *kf,
const gchar *key,
gpointer value)
{
gboolean *bool = value;
gboolean *boolean = value;

*bool = utils_get_setting_boolean (kf, group, key, *bool);
*boolean = utils_get_setting_boolean (kf, group, key, *boolean);
}

static void
Expand All @@ -1422,9 +1422,9 @@ write_setting_boolean (GKeyFile *kf,
const gchar *key,
gconstpointer value)
{
const gboolean *bool = value;
const gboolean *boolean = value;

g_key_file_set_boolean (kf, group, key, *bool);
g_key_file_set_boolean (kf, group, key, *boolean);
}

/* loads @filename in @kf and return %FALSE if failed, emitting a warning
Expand Down

0 comments on commit f1148d5

Please sign in to comment.