Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
ecc94d76
Commit
ecc94d76
authored
Oct 19, 2017
by
Christian Brauner
Committed by
GitHub
Oct 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1860 from kilobyte/master
fix build failures on x32
parents
8c104d58
71460831
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
confile.c
src/lxc/confile.c
+1
-1
confile_legacy.c
src/lxc/confile_legacy.c
+1
-1
confile_utils.c
src/lxc/confile_utils.c
+2
-2
confile_utils.h
src/lxc/confile_utils.h
+1
-1
log.c
src/lxc/log.c
+1
-1
No files found.
src/lxc/confile.c
View file @
ecc94d76
...
@@ -1453,7 +1453,7 @@ static int set_config_prlimit(const char *key, const char *value,
...
@@ -1453,7 +1453,7 @@ static int set_config_prlimit(const char *key, const char *value,
{
{
struct
lxc_list
*
iter
;
struct
lxc_list
*
iter
;
struct
rlimit
limit
;
struct
rlimit
limit
;
unsigned
long
limit_value
;
rlim_t
limit_value
;
struct
lxc_list
*
limlist
=
NULL
;
struct
lxc_list
*
limlist
=
NULL
;
struct
lxc_limit
*
limelem
=
NULL
;
struct
lxc_limit
*
limelem
=
NULL
;
...
...
src/lxc/confile_legacy.c
View file @
ecc94d76
...
@@ -1081,7 +1081,7 @@ extern int set_config_limit(const char *key, const char *value,
...
@@ -1081,7 +1081,7 @@ extern int set_config_limit(const char *key, const char *value,
{
{
struct
lxc_list
*
iter
;
struct
lxc_list
*
iter
;
struct
rlimit
limit
;
struct
rlimit
limit
;
unsigned
long
limit_value
;
rlim_t
limit_value
;
struct
lxc_list
*
limlist
=
NULL
;
struct
lxc_list
*
limlist
=
NULL
;
struct
lxc_limit
*
limelem
=
NULL
;
struct
lxc_limit
*
limelem
=
NULL
;
...
...
src/lxc/confile_utils.c
View file @
ecc94d76
...
@@ -672,7 +672,7 @@ int lxc_get_conf_int(struct lxc_conf *c, char *retv, int inlen, int v)
...
@@ -672,7 +672,7 @@ int lxc_get_conf_int(struct lxc_conf *c, char *retv, int inlen, int v)
return
snprintf
(
retv
,
inlen
,
"%d"
,
v
);
return
snprintf
(
retv
,
inlen
,
"%d"
,
v
);
}
}
bool
parse_limit_value
(
const
char
**
value
,
unsigned
long
*
res
)
bool
parse_limit_value
(
const
char
**
value
,
rlim_t
*
res
)
{
{
char
*
endptr
=
NULL
;
char
*
endptr
=
NULL
;
...
@@ -683,7 +683,7 @@ bool parse_limit_value(const char **value, unsigned long *res)
...
@@ -683,7 +683,7 @@ bool parse_limit_value(const char **value, unsigned long *res)
}
}
errno
=
0
;
errno
=
0
;
*
res
=
strtoul
(
*
value
,
&
endptr
,
10
);
*
res
=
strtoul
l
(
*
value
,
&
endptr
,
10
);
if
(
errno
||
!
endptr
)
if
(
errno
||
!
endptr
)
return
false
;
return
false
;
*
value
=
endptr
;
*
value
=
endptr
;
...
...
src/lxc/confile_utils.h
View file @
ecc94d76
...
@@ -84,5 +84,5 @@ extern void update_hwaddr(const char *line);
...
@@ -84,5 +84,5 @@ extern void update_hwaddr(const char *line);
extern
bool
new_hwaddr
(
char
*
hwaddr
);
extern
bool
new_hwaddr
(
char
*
hwaddr
);
extern
int
lxc_get_conf_str
(
char
*
retv
,
int
inlen
,
const
char
*
value
);
extern
int
lxc_get_conf_str
(
char
*
retv
,
int
inlen
,
const
char
*
value
);
extern
int
lxc_get_conf_int
(
struct
lxc_conf
*
c
,
char
*
retv
,
int
inlen
,
int
v
);
extern
int
lxc_get_conf_int
(
struct
lxc_conf
*
c
,
char
*
retv
,
int
inlen
,
int
v
);
extern
bool
parse_limit_value
(
const
char
**
value
,
unsigned
long
*
res
);
extern
bool
parse_limit_value
(
const
char
**
value
,
rlim_t
*
res
);
#endif
/* __LXC_CONFILE_UTILS_H */
#endif
/* __LXC_CONFILE_UTILS_H */
src/lxc/log.c
View file @
ecc94d76
...
@@ -222,7 +222,7 @@ int lxc_unix_epoch_to_utc(char *buf, size_t bufsize, const struct timespec *time
...
@@ -222,7 +222,7 @@ int lxc_unix_epoch_to_utc(char *buf, size_t bufsize, const struct timespec *time
seconds
=
(
time
->
tv_sec
-
d_in_s
-
h_in_s
-
(
minutes
*
60
));
seconds
=
(
time
->
tv_sec
-
d_in_s
-
h_in_s
-
(
minutes
*
60
));
/* Make string from nanoseconds. */
/* Make string from nanoseconds. */
ret
=
snprintf
(
nanosec
,
LXC_NUMSTRLEN64
,
"%
ld"
,
time
->
tv_nsec
);
ret
=
snprintf
(
nanosec
,
LXC_NUMSTRLEN64
,
"%
"
PRId64
,
(
int64_t
)
time
->
tv_nsec
);
if
(
ret
<
0
||
ret
>=
LXC_NUMSTRLEN64
)
if
(
ret
<
0
||
ret
>=
LXC_NUMSTRLEN64
)
return
-
1
;
return
-
1
;
...
...
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