modules: Use pa_streq instead of strcmp.

This commit is contained in:
Arti Trivedi Bora 2012-06-06 01:28:13 +05:30 committed by Tanu Kaskinen
parent e0c16af551
commit e5954aca8e
19 changed files with 45 additions and 45 deletions

View file

@ -163,17 +163,17 @@ static void resolver_cb(
char *key, *value;
pa_assert_se(avahi_string_list_get_pair(l, &key, &value, NULL) == 0);
if (strcmp(key, "device") == 0) {
if (pa_streq(key, "device")) {
pa_xfree(device);
device = value;
value = NULL;
} else if (strcmp(key, "rate") == 0)
} else if (pa_streq(key, "rate"))
ss.rate = (uint32_t) atoi(value);
else if (strcmp(key, "channels") == 0)
else if (pa_streq(key, "channels"))
ss.channels = (uint8_t) atoi(value);
else if (strcmp(key, "format") == 0)
else if (pa_streq(key, "format"))
ss.format = pa_parse_sample_format(value);
else if (strcmp(key, "channel_map") == 0) {
else if (pa_streq(key, "channel_map")) {
pa_channel_map_parse(&cm, value);
channel_map_set = TRUE;
}