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
a5480108
Commit
a5480108
authored
Oct 09, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dirvec: constant pointers in dirvec_find()
dirvec_find() does not modify the object, thus it should get a const pointer.
parent
68f716a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dirvec.c
src/dirvec.c
+1
-1
dirvec.h
src/dirvec.h
+1
-1
No files found.
src/dirvec.c
View file @
a5480108
...
@@ -22,7 +22,7 @@ void dirvec_sort(struct dirvec *dv)
...
@@ -22,7 +22,7 @@ void dirvec_sort(struct dirvec *dv)
qsort
(
dv
->
base
,
dv
->
nr
,
sizeof
(
struct
directory
*
),
dirvec_cmp
);
qsort
(
dv
->
base
,
dv
->
nr
,
sizeof
(
struct
directory
*
),
dirvec_cmp
);
}
}
struct
directory
*
dirvec_find
(
struct
dirvec
*
dv
,
const
char
*
path
)
struct
directory
*
dirvec_find
(
const
struct
dirvec
*
dv
,
const
char
*
path
)
{
{
int
i
;
int
i
;
...
...
src/dirvec.h
View file @
a5480108
...
@@ -10,7 +10,7 @@ struct dirvec {
...
@@ -10,7 +10,7 @@ struct dirvec {
void
dirvec_sort
(
struct
dirvec
*
dv
);
void
dirvec_sort
(
struct
dirvec
*
dv
);
struct
directory
*
dirvec_find
(
struct
dirvec
*
dv
,
const
char
*
path
);
struct
directory
*
dirvec_find
(
const
struct
dirvec
*
dv
,
const
char
*
path
);
int
dirvec_delete
(
struct
dirvec
*
dv
,
struct
directory
*
del
);
int
dirvec_delete
(
struct
dirvec
*
dv
,
struct
directory
*
del
);
...
...
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