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
3cc12817
Commit
3cc12817
authored
Sep 09, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: _get_next_param() returns a const pointer
No writers.
parent
68875ba6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
conf.c
src/conf.c
+1
-1
conf.h
src/conf.h
+2
-2
No files found.
src/conf.c
View file @
3cc12817
...
@@ -463,7 +463,7 @@ config_read_file(const char *file, GError **error_r)
...
@@ -463,7 +463,7 @@ config_read_file(const char *file, GError **error_r)
return
true
;
return
true
;
}
}
struct
config_param
*
const
struct
config_param
*
config_get_next_param
(
const
char
*
name
,
const
struct
config_param
*
last
)
config_get_next_param
(
const
char
*
name
,
const
struct
config_param
*
last
)
{
{
struct
config_entry
*
entry
;
struct
config_entry
*
entry
;
...
...
src/conf.h
View file @
3cc12817
...
@@ -133,11 +133,11 @@ config_read_file(const char *file, GError **error_r);
...
@@ -133,11 +133,11 @@ config_read_file(const char *file, GError **error_r);
/* don't free the returned value
/* don't free the returned value
set _last_ to NULL to get first entry */
set _last_ to NULL to get first entry */
G_GNUC_PURE
G_GNUC_PURE
struct
config_param
*
const
struct
config_param
*
config_get_next_param
(
const
char
*
name
,
const
struct
config_param
*
last
);
config_get_next_param
(
const
char
*
name
,
const
struct
config_param
*
last
);
G_GNUC_PURE
G_GNUC_PURE
static
inline
struct
config_param
*
static
inline
const
struct
config_param
*
config_get_param
(
const
char
*
name
)
config_get_param
(
const
char
*
name
)
{
{
return
config_get_next_param
(
name
,
NULL
);
return
config_get_next_param
(
name
,
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