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
b7a79537
Commit
b7a79537
authored
Feb 21, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/Directory: use "unsigned" for inode and device
This is what we get from the storage plugin via FileInfo. Fixes a compiler warning on Mac OS X where dev_t appears to be signed.
parent
d25ef7ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Directory.hxx
src/db/Directory.hxx
+3
-6
No files found.
src/db/Directory.hxx
View file @
b7a79537
...
...
@@ -28,10 +28,8 @@
#include <string>
#include <sys/types.h>
#define DEVICE_INARCHIVE (dev_t)(-1)
#define DEVICE_CONTAINER (dev_t)(-2)
static
constexpr
unsigned
DEVICE_INARCHIVE
=
-
1
;
static
constexpr
unsigned
DEVICE_CONTAINER
=
-
2
;
#define directory_for_each_child(pos, directory) \
list_for_each_entry(pos, &(directory).children, siblings)
...
...
@@ -81,8 +79,7 @@ struct Directory {
Directory
*
parent
;
time_t
mtime
;
ino_t
inode
;
dev_t
device
;
unsigned
inode
,
device
;
bool
have_stat
;
/* not needed if ino_t == dev_t == 0 is impossible */
std
::
string
path
;
...
...
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