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
4af63627
Commit
4af63627
authored
Sep 10, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directory_save: pass const pointer to _save()
parent
d5407519
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
directory_save.c
src/directory_save.c
+3
-3
directory_save.h
src/directory_save.h
+1
-1
No files found.
src/directory_save.c
View file @
4af63627
...
...
@@ -42,9 +42,8 @@ directory_quark(void)
}
void
directory_save
(
FILE
*
fp
,
struct
directory
*
directory
)
directory_save
(
FILE
*
fp
,
const
struct
directory
*
directory
)
{
struct
dirvec
*
children
=
&
directory
->
children
;
size_t
i
;
if
(
!
directory_is_root
(
directory
))
{
...
...
@@ -55,8 +54,9 @@ directory_save(FILE *fp, struct directory *directory)
directory_get_path
(
directory
));
}
const
struct
dirvec
*
children
=
&
directory
->
children
;
for
(
i
=
0
;
i
<
children
->
nr
;
++
i
)
{
struct
directory
*
cur
=
children
->
base
[
i
];
const
struct
directory
*
cur
=
children
->
base
[
i
];
char
*
base
=
g_path_get_basename
(
cur
->
path
);
fprintf
(
fp
,
DIRECTORY_DIR
"%s
\n
"
,
base
);
...
...
src/directory_save.h
View file @
4af63627
...
...
@@ -28,7 +28,7 @@
struct
directory
;
void
directory_save
(
FILE
*
fp
,
struct
directory
*
directory
);
directory_save
(
FILE
*
fp
,
const
struct
directory
*
directory
);
bool
directory_load
(
FILE
*
fp
,
struct
directory
*
directory
,
...
...
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