Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pulseaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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