Skip to content

Commit d782470

Browse files
committed
Move static consts into cpp file
1 parent 436f9c3 commit d782470

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

include/pfs/types.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace pfs {
3030

31-
static const uid_t INVALID_UID = (uid_t)-1;
32-
static const pid_t INVALID_PID = (pid_t)-1;
33-
static const ino_t INVALID_INODE = (ino_t)0;
31+
extern const uid_t INVALID_UID;
32+
extern const pid_t INVALID_PID;
33+
extern const ino_t INVALID_INODE;
3434

3535
// Note: We only support values that exist post 2.6.32.
3636
enum class task_state

src/types.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
namespace pfs {
2323

24+
const uid_t INVALID_UID = (uid_t)-1;
25+
const pid_t INVALID_PID = (pid_t)-1;
26+
const ino_t INVALID_INODE = (ino_t)0;
27+
2428
// =============================================================
2529
// Capabilities mask
2630
// =============================================================

0 commit comments

Comments
 (0)