Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marijn Suijten
pulseaudio
Commits
a87ff81a
Commit
a87ff81a
authored
Oct 25, 2020
by
pali
Committed by
Marijn Suijten
Oct 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluetooth: Do not use sizeof(type) but rather sizeof(variable)
parent
120a70f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/modules/bluetooth/module-bluez5-device.c
src/modules/bluetooth/module-bluez5-device.c
+3
-3
No files found.
src/modules/bluetooth/module-bluez5-device.c
View file @
a87ff81a
...
...
@@ -1907,7 +1907,7 @@ static pa_card_profile *create_card_profile(struct userdata *u, pa_bluetooth_pro
description
=
_
(
"Headset Audio Gateway (HSP)"
);
else
description
=
_
(
"Headset Audio Gateway (HFP)"
);
cp
=
pa_card_profile_new
(
name
,
description
,
sizeof
(
pa_bluetooth_profile_t
));
cp
=
pa_card_profile_new
(
name
,
description
,
sizeof
(
*
cp
));
cp
->
priority
=
profile
;
cp
->
n_sinks
=
1
;
cp
->
n_sources
=
1
;
...
...
@@ -1927,7 +1927,7 @@ static pa_card_profile *create_card_profile(struct userdata *u, pa_bluetooth_pro
else
description
=
pa_sprintf_malloc
(
_
(
"High Fidelity Capture (A2DP Source) with codec %s"
),
a2dp_codec
->
description
);
cp
=
pa_card_profile_new
(
name
,
description
,
sizeof
(
pa_bluetooth_profile_t
));
cp
=
pa_card_profile_new
(
name
,
description
,
sizeof
(
*
cp
));
pa_xfree
(
description
);
cp
->
priority
=
profile
;
...
...
@@ -2195,7 +2195,7 @@ static int add_card(struct userdata *u) {
pa_assert
(
!
pa_hashmap_isempty
(
data
.
profiles
));
cp
=
pa_card_profile_new
(
"off"
,
_
(
"Off"
),
sizeof
(
pa_bluetooth_profile_t
));
cp
=
pa_card_profile_new
(
"off"
,
_
(
"Off"
),
sizeof
(
*
cp
));
cp
->
available
=
PA_AVAILABLE_YES
;
p
=
PA_CARD_PROFILE_DATA
(
cp
);
*
p
=
PA_BLUETOOTH_PROFILE_OFF
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment