Skip to content

Commit 036eeed

Browse files
committed
audio/jack: Replace TRUE and FALSE macros
1 parent bc2bad5 commit 036eeed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/audio/jack.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ static int settings_init(struct state_jack *s, char *cfg)
211211
if(tok[1] != 'i' && tok[1] != 'o')
212212
return -1;
213213
if(tok[1] == 'i') {
214-
s->receiver = TRUE;
214+
s->receiver = true;
215215
if(tok[2] == '=')
216216
s->in_port_pattern = strdup(&tok[3]);
217217
}
218218
if(tok[1] == 'o') {
219-
s->sender = TRUE;
219+
s->sender = true;
220220
if(tok[2] == '=')
221221
s->out_port_pattern = strdup(&tok[3]);
222222
}
@@ -241,7 +241,7 @@ static int attach_input_ports(struct state_jack *s)
241241
const char **ports;
242242
if ((ports = s->libjack->get_ports (s->client, s->in_port_pattern, NULL, JackPortIsOutput)) == NULL) {
243243
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Cannot find any ports matching pattern '%s'\n", s->in_port_pattern);
244-
return FALSE;
244+
return false;
245245
}
246246

247247
while (ports[i]) ++i;
@@ -259,7 +259,7 @@ static int attach_input_ports(struct state_jack *s)
259259
}
260260

261261
free (ports);
262-
return TRUE;
262+
return true;
263263
}
264264

265265
void * jack_start(const char *cfg)
@@ -279,8 +279,8 @@ void * jack_start(const char *cfg)
279279
s->in_ch_count = 1;
280280
s->play_buffer_start = s->play_buffer_end = 0;
281281
s->rec_buffer_start = s->rec_buffer_end = 0;
282-
s->sender = FALSE;
283-
s->receiver = FALSE;
282+
s->sender = false;
283+
s->receiver = false;
284284
s->out_channel_count = 0;
285285

286286
char *cfg_copy = strdup(cfg);

0 commit comments

Comments
 (0)