mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
treewide: try to use const char * for string literals
This commit is contained in:
parent
fc72208fa0
commit
436787d6ba
9 changed files with 20 additions and 17 deletions
|
|
@ -1335,7 +1335,8 @@ static struct service *make_service(struct impl *impl, const struct service_info
|
|||
if (spa_streq(service_name, "_pipewire-audio._udp")) {
|
||||
uint32_t mask = 0;
|
||||
for (l = txt; l && compatible; l = l->next) {
|
||||
char *key, *value, *k = NULL;
|
||||
const char *k = NULL;
|
||||
char *key, *value;
|
||||
|
||||
if (avahi_string_list_get_pair(l, &key, &value, NULL) != 0)
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -197,7 +197,9 @@ static char *port_alias(char *buffer, int size, struct object *n, struct object
|
|||
static void print_port(struct data *data, const char *prefix, struct object *n,
|
||||
struct object *p, bool verbose)
|
||||
{
|
||||
char buffer[1024], id[64] = "", *prefix2 = "";
|
||||
char buffer[1024], id[64] = "";
|
||||
const char *prefix2 = "";
|
||||
|
||||
if (data->opt_id) {
|
||||
snprintf(id, sizeof(id), "%4d ", p->id);
|
||||
prefix2 = " ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue