{
int i, ret;
char *ut;
- char *dbtools = NULL, *sender_info = NULL, *sender_list = NULL;
+ char *selectors = NULL, *sender_info = NULL, *sender_list = NULL;
struct mallinfo mi = mallinfo();
if (argc)
return -E_COMMAND_SYNTAX;
mmd_lock();
for (i = 0; dblist[i].name; i++) {
- dbtools = para_strcat(dbtools, dblist[i].name);
- dbtools = para_strcat(dbtools, " ");
+ selectors = para_strcat(selectors, dblist[i].name);
+ selectors = para_strcat(selectors, " ");
}
for (i = 0; senders[i].name; i++) {
char *info = senders[i].info();
mmd->num_commands,
mmd->num_connects,
conf.loglevel_arg,
- dbtools,
+ selectors,
SUPPORTED_AUDIO_FORMATS,
sender_list,
sender_info
);
mmd_unlock();
free(ut);
- free(dbtools);
+ free(selectors);
free(sender_list);
free(sender_info);
return ret;
int i, ret;
if (!argc) {
- char *dbtool;
+ char *selector;
mmd_lock();
- dbtool = para_strdup(dblist[mmd->dbt_num].name);
+ selector = para_strdup(dblist[mmd->dbt_num].name);
mmd_unlock();
- ret = send_va_buffer(fd, "%s\n", dbtool);
- free(dbtool);
+ ret = send_va_buffer(fd, "%s\n", selector);
+ free(selector);
return ret;
}
for (i = 0; dblist[i].name; i++) {