mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-29 21:37:54 -04:00
treewide: fix some compiler warnings
This commit is contained in:
parent
61726f41d5
commit
e41ba35139
4 changed files with 6 additions and 6 deletions
|
|
@ -5338,7 +5338,7 @@ int jack_set_freewheel(jack_client_t* client, int onoff)
|
|||
pw_thread_loop_lock(c->context.loop);
|
||||
str = pw_properties_get(c->props, PW_KEY_NODE_GROUP);
|
||||
if (str != NULL) {
|
||||
char *p = strstr(str, ",pipewire.freewheel");
|
||||
const char *p = strstr(str, ",pipewire.freewheel");
|
||||
if (p == NULL)
|
||||
p = strstr(str, "pipewire.freewheel");
|
||||
if (p == NULL && onoff)
|
||||
|
|
|
|||
|
|
@ -426,11 +426,11 @@ static PA_PRINTF_FUNC(1,0) inline char *pa_vsprintf_malloc(const char *fmt, va_l
|
|||
|
||||
static inline char *pa_path_get_filename(const char *p)
|
||||
{
|
||||
char *fn;
|
||||
const char *fn;
|
||||
if (!p)
|
||||
return NULL;
|
||||
if ((fn = strrchr(p, PA_PATH_SEP_CHAR)))
|
||||
return fn+1;
|
||||
return (char*)(fn+1);
|
||||
return (char*) p;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1102,7 +1102,7 @@ static struct spa_bt_adapter *adapter_find(struct spa_bt_monitor *monitor, const
|
|||
static int parse_modalias(const char *modalias, uint16_t *source, uint16_t *vendor,
|
||||
uint16_t *product, uint16_t *version)
|
||||
{
|
||||
char *pos;
|
||||
const char *pos;
|
||||
unsigned int src, i, j, k;
|
||||
|
||||
if (spa_strstartswith(modalias, "bluetooth:"))
|
||||
|
|
|
|||
|
|
@ -73,9 +73,9 @@ impl_log_logtv(void *object,
|
|||
char timestamp[18] = {0};
|
||||
char topicstr[32] = {0};
|
||||
char filename[64] = {0};
|
||||
char location[1000 + RESERVED_LENGTH], *p, *s;
|
||||
char location[1000 + RESERVED_LENGTH], *p;
|
||||
static const char * const levels[] = { "-", "E", "W", "I", "D", "T", "*T*" };
|
||||
const char *prefix = "", *suffix = "";
|
||||
const char *prefix = "", *suffix = "", *s;
|
||||
int size, len;
|
||||
bool do_trace;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue