diff options
Diffstat (limited to 'src/sound-theme-spec.c')
| -rw-r--r-- | src/sound-theme-spec.c | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/src/sound-theme-spec.c b/src/sound-theme-spec.c index 49282db..611b008 100644 --- a/src/sound-theme-spec.c +++ b/src/sound-theme-spec.c @@ -87,7 +87,7 @@ static ca_bool_t data_dir_matches(ca_data_dir *d, const char*output_profile) {      if (!d->output_profile)          return TRUE; -    return streq(d->output_profile, output_profile); +    return ca_streq(d->output_profile, output_profile);  }  static ca_data_dir* find_data_dir(ca_theme_data *t, const char *name) { @@ -97,7 +97,7 @@ static ca_data_dir* find_data_dir(ca_theme_data *t, const char *name) {      ca_assert(name);      for (d = t->data_dirs; d; d = d->next) -        if (streq(d->name, name)) +        if (ca_streq(d->name, name))              return d;      return NULL; @@ -171,7 +171,7 @@ static int load_theme_path(ca_theme_data *t, const char *prefix, const char *nam          if (!ln[0])              continue; -        if (streq(ln, "[Sound Theme]")) { +        if (ca_streq(ln, "[Sound Theme]")) {              in_sound_theme_section = TRUE;              current_data_dir = NULL;              continue; @@ -248,7 +248,7 @@ static int load_theme_path(ca_theme_data *t, const char *prefix, const char *nam              if (!strncmp(ln, "OutputProfile=", 14)) { -                if (current_data_dir->output_profile && !streq(current_data_dir->output_profile, ln+14)) { +                if (current_data_dir->output_profile && !ca_streq(current_data_dir->output_profile, ln+14)) {                      ret = CA_ERROR_CORRUPT;                      goto fail;                  } @@ -314,7 +314,7 @@ static int load_theme_dir(ca_theme_data *t, const char *name) {      if ((ret = get_data_home(&e)) < 0)          return ret; -    if (streq(name, FALLBACK_THEME)) +    if (ca_streq(name, FALLBACK_THEME))          t->loaded_fallback_theme = TRUE;      if (e) { @@ -363,7 +363,7 @@ static int load_theme_data(ca_theme_data **_t, const char *name) {      ca_return_val_if_fail(name, CA_ERROR_INVALID);      if (*_t) -        if (streq((*_t)->name, name)) +        if (ca_streq((*_t)->name, name))              return CA_SUCCESS;      if (!(t = ca_new0(ca_theme_data, 1))) @@ -424,7 +424,7 @@ static int find_sound_for_suffix(                                   name, suffix)))          return CA_ERROR_OOM; -    if (streq(suffix, ".disabled")) { +    if (ca_streq(suffix, ".disabled")) {          if (access(fn, F_OK) == 0)              ret = CA_ERROR_DISABLED; @@ -665,7 +665,7 @@ static int find_sound_in_theme(              return ret;          /* Then, fall back to stereo */ -        if (!streq(profile, DEFAULT_OUTPUT_PROFILE)) +        if (!ca_streq(profile, DEFAULT_OUTPUT_PROFILE))              if ((ret = find_sound_in_profile(f, t, name, locale, DEFAULT_OUTPUT_PROFILE)) != CA_ERROR_NOTFOUND)                  return ret;      } @@ -693,7 +693,7 @@ static int find_sound_for_theme(      /* First, try in the theme itself, and if that fails the fallback theme */      if ((ret = load_theme_data(t, theme)) == CA_ERROR_NOTFOUND) -        if (!streq(theme, FALLBACK_THEME)) +        if (!ca_streq(theme, FALLBACK_THEME))              ret = load_theme_data(t, FALLBACK_THEME);      if (ret == CA_SUCCESS) | 
