Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
e75148dc
Commit
e75148dc
authored
May 09, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: Move user-per-sec constant into util.h header
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
3e8b82d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cr-restore.c
cr-restore.c
+0
-2
util.h
include/util.h
+2
-0
No files found.
cr-restore.c
View file @
e75148dc
...
@@ -1370,8 +1370,6 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
...
@@ -1370,8 +1370,6 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
return
-
1
;
return
-
1
;
}
}
#define USEC_PER_SEC 1000000L
static
inline
int
timeval_valid
(
struct
timeval
*
tv
)
static
inline
int
timeval_valid
(
struct
timeval
*
tv
)
{
{
return
(
tv
->
tv_sec
>=
0
)
&&
((
unsigned
long
)
tv
->
tv_usec
<
USEC_PER_SEC
);
return
(
tv
->
tv_sec
>=
0
)
&&
((
unsigned
long
)
tv
->
tv_usec
<
USEC_PER_SEC
);
...
...
include/util.h
View file @
e75148dc
...
@@ -275,4 +275,6 @@ static inline bool dir_dots(struct dirent *de)
...
@@ -275,4 +275,6 @@ static inline bool dir_dots(struct dirent *de)
extern
int
read_fd_link
(
int
lfd
,
char
*
buf
,
size_t
size
);
extern
int
read_fd_link
(
int
lfd
,
char
*
buf
,
size_t
size
);
#define USEC_PER_SEC 1000000L
#endif
/* __CR_UTIL_H__ */
#endif
/* __CR_UTIL_H__ */
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