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
37d77caa
Commit
37d77caa
authored
Aug 29, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const pointers
Yet another patch which converts pointer arguments to "const".
parent
5bd55516
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
tag.c
src/tag.c
+4
-4
tag.h
src/tag.h
+4
-4
tag_id3.c
src/tag_id3.c
+1
-1
tag_id3.h
src/tag_id3.h
+1
-1
No files found.
src/tag.c
View file @
37d77caa
...
...
@@ -101,7 +101,7 @@ void tag_print_types(int fd)
}
}
void
tag_print
(
int
fd
,
struct
tag
*
tag
)
void
tag_print
(
int
fd
,
const
struct
tag
*
tag
)
{
int
i
;
...
...
@@ -114,7 +114,7 @@ void tag_print(int fd, struct tag *tag)
}
}
struct
tag
*
tag_ape_load
(
char
*
file
)
struct
tag
*
tag_ape_load
(
c
onst
c
har
*
file
)
{
struct
tag
*
ret
=
NULL
;
FILE
*
fp
;
...
...
@@ -303,7 +303,7 @@ void tag_free(struct tag *tag)
free
(
tag
);
}
struct
tag
*
tag_dup
(
struct
tag
*
tag
)
struct
tag
*
tag_dup
(
const
struct
tag
*
tag
)
{
struct
tag
*
ret
;
int
i
;
...
...
@@ -321,7 +321,7 @@ struct tag *tag_dup(struct tag *tag)
return
ret
;
}
int
tag_equal
(
struct
tag
*
tag1
,
struct
tag
*
tag2
)
int
tag_equal
(
const
struct
tag
*
tag1
,
const
struct
tag
*
tag2
)
{
int
i
;
...
...
src/tag.h
View file @
37d77caa
...
...
@@ -51,7 +51,7 @@ struct tag {
mpd_uint8
numOfItems
;
};
struct
tag
*
tag_ape_load
(
char
*
file
);
struct
tag
*
tag_ape_load
(
c
onst
c
har
*
file
);
struct
tag
*
tag_new
(
void
);
...
...
@@ -86,10 +86,10 @@ static inline void tag_add_item(struct tag *tag, enum tag_type itemType,
void
tag_print_types
(
int
fd
);
void
tag_print
(
int
fd
,
struct
tag
*
tag
);
void
tag_print
(
int
fd
,
const
struct
tag
*
tag
);
struct
tag
*
tag_dup
(
struct
tag
*
tag
);
struct
tag
*
tag_dup
(
const
struct
tag
*
tag
);
int
tag_equal
(
struct
tag
*
tag1
,
struct
tag
*
tag2
);
int
tag_equal
(
const
struct
tag
*
tag1
,
const
struct
tag
*
tag2
);
#endif
src/tag_id3.c
View file @
37d77caa
...
...
@@ -338,7 +338,7 @@ static struct id3_tag *findId3TagFromEnd(FILE * stream)
}
#endif
struct
tag
*
tag_id3_load
(
char
*
file
)
struct
tag
*
tag_id3_load
(
c
onst
c
har
*
file
)
{
struct
tag
*
ret
=
NULL
;
#ifdef HAVE_ID3TAG
...
...
src/tag_id3.h
View file @
37d77caa
...
...
@@ -28,6 +28,6 @@ struct id3_tag;
struct
tag
*
tag_id3_import
(
struct
id3_tag
*
);
#endif
struct
tag
*
tag_id3_load
(
char
*
file
);
struct
tag
*
tag_id3_load
(
c
onst
c
har
*
file
);
#endif
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