Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
35af9401
Commit
35af9401
authored
Sep 09, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: get_block_param() returns a const pointer
No caller needs to write.
parent
bc0fec0a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
conf.c
src/conf.c
+4
-4
conf.h
src/conf.h
+1
-1
shout_plugin.c
src/output/shout_plugin.c
+1
-1
No files found.
src/conf.c
View file @
35af9401
...
...
@@ -559,7 +559,7 @@ config_get_positive(const char *name, unsigned default_value)
return
(
unsigned
)
value
;
}
struct
block_param
*
const
struct
block_param
*
config_get_block_param
(
const
struct
config_param
*
param
,
const
char
*
name
)
{
if
(
param
==
NULL
)
...
...
@@ -597,7 +597,7 @@ const char *
config_get_block_string
(
const
struct
config_param
*
param
,
const
char
*
name
,
const
char
*
default_value
)
{
struct
block_param
*
bp
=
config_get_block_param
(
param
,
name
);
const
struct
block_param
*
bp
=
config_get_block_param
(
param
,
name
);
if
(
bp
==
NULL
)
return
default_value
;
...
...
@@ -609,7 +609,7 @@ unsigned
config_get_block_unsigned
(
const
struct
config_param
*
param
,
const
char
*
name
,
unsigned
default_value
)
{
struct
block_param
*
bp
=
config_get_block_param
(
param
,
name
);
const
struct
block_param
*
bp
=
config_get_block_param
(
param
,
name
);
long
value
;
char
*
endptr
;
...
...
@@ -630,7 +630,7 @@ bool
config_get_block_bool
(
const
struct
config_param
*
param
,
const
char
*
name
,
bool
default_value
)
{
struct
block_param
*
bp
=
config_get_block_param
(
param
,
name
);
const
struct
block_param
*
bp
=
config_get_block_param
(
param
,
name
);
bool
success
,
value
;
if
(
bp
==
NULL
)
...
...
src/conf.h
View file @
35af9401
...
...
@@ -177,7 +177,7 @@ unsigned
config_get_positive
(
const
char
*
name
,
unsigned
default_value
);
G_GNUC_PURE
struct
block_param
*
const
struct
block_param
*
config_get_block_param
(
const
struct
config_param
*
param
,
const
char
*
name
);
G_GNUC_PURE
...
...
src/output/shout_plugin.c
View file @
35af9401
...
...
@@ -125,7 +125,7 @@ my_shout_init_driver(const struct audio_format *audio_format,
const
char
*
user
;
char
*
name
;
const
char
*
value
;
struct
block_param
*
block_param
;
const
struct
block_param
*
block_param
;
int
public
;
if
(
audio_format
==
NULL
||
...
...
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