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
2ffda4c4
Unverified
Commit
2ffda4c4
authored
Aug 03, 2019
by
Christian Brauner
Committed by
GitHub
Aug 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3113 from jcfaracco/clang
utils: Fix wrong integer of a function parameter.
parents
df788783
7c3d3976
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
lxccontainer.c
src/lxc/lxccontainer.c
+2
-1
utils.c
src/lxc/utils.c
+2
-2
utils.h
src/lxc/utils.h
+1
-1
No files found.
src/lxc/lxccontainer.c
View file @
2ffda4c4
...
@@ -1660,7 +1660,8 @@ static bool prepend_lxc_header(char *path, const char *t, char *const argv[])
...
@@ -1660,7 +1660,8 @@ static bool prepend_lxc_header(char *path, const char *t, char *const argv[])
FILE
*
f
;
FILE
*
f
;
int
ret
=
-
1
;
int
ret
=
-
1
;
#if HAVE_OPENSSL
#if HAVE_OPENSSL
int
i
,
md_len
=
0
;
int
i
;
unsigned
int
md_len
=
0
;
unsigned
char
md_value
[
EVP_MAX_MD_SIZE
];
unsigned
char
md_value
[
EVP_MAX_MD_SIZE
];
char
*
tpath
;
char
*
tpath
;
#endif
#endif
...
...
src/lxc/utils.c
View file @
2ffda4c4
...
@@ -333,7 +333,7 @@ again:
...
@@ -333,7 +333,7 @@ again:
#ifdef HAVE_OPENSSL
#ifdef HAVE_OPENSSL
#include <openssl/evp.h>
#include <openssl/evp.h>
static
int
do_sha1_hash
(
const
char
*
buf
,
int
buflen
,
unsigned
char
*
md_value
,
int
*
md_len
)
static
int
do_sha1_hash
(
const
char
*
buf
,
int
buflen
,
unsigned
char
*
md_value
,
unsigned
int
*
md_len
)
{
{
EVP_MD_CTX
*
mdctx
;
EVP_MD_CTX
*
mdctx
;
const
EVP_MD
*
md
;
const
EVP_MD
*
md
;
...
@@ -353,7 +353,7 @@ static int do_sha1_hash(const char *buf, int buflen, unsigned char *md_value, in
...
@@ -353,7 +353,7 @@ static int do_sha1_hash(const char *buf, int buflen, unsigned char *md_value, in
return
0
;
return
0
;
}
}
int
sha1sum_file
(
char
*
fnam
,
unsigned
char
*
digest
,
int
*
md_len
)
int
sha1sum_file
(
char
*
fnam
,
unsigned
char
*
digest
,
unsigned
int
*
md_len
)
{
{
char
*
buf
;
char
*
buf
;
int
ret
;
int
ret
;
...
...
src/lxc/utils.h
View file @
2ffda4c4
...
@@ -99,7 +99,7 @@ extern int wait_for_pid(pid_t pid);
...
@@ -99,7 +99,7 @@ extern int wait_for_pid(pid_t pid);
extern
int
lxc_wait_for_pid_status
(
pid_t
pid
);
extern
int
lxc_wait_for_pid_status
(
pid_t
pid
);
#if HAVE_OPENSSL
#if HAVE_OPENSSL
extern
int
sha1sum_file
(
char
*
fnam
,
unsigned
char
*
md_value
,
int
*
md_len
);
extern
int
sha1sum_file
(
char
*
fnam
,
unsigned
char
*
md_value
,
unsigned
int
*
md_len
);
#endif
#endif
/* initialize rand with urandom */
/* initialize rand with urandom */
...
...
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