Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libloc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
libloc
Commits
36b9fd75
Commit
36b9fd75
authored
Nov 27, 2020
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence compiler formatting warnings for size_t
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
5b4bd18a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/database.c
src/database.c
+2
-2
src/writer.c
src/writer.c
+1
-1
No files found.
src/database.c
View file @
36b9fd75
...
...
@@ -250,11 +250,11 @@ static int loc_database_read_signature(struct loc_database* db,
char
**
dst
,
char
*
src
,
size_t
length
)
{
// Check for a plausible signature length
if
(
length
>
LOC_SIGNATURE_MAX_LENGTH
)
{
ERROR
(
db
->
ctx
,
"Signature too long: %
ld
\n
"
,
length
);
ERROR
(
db
->
ctx
,
"Signature too long: %
zu
\n
"
,
length
);
return
-
EINVAL
;
}
DEBUG
(
db
->
ctx
,
"Reading signature of %
ld
bytes
\n
"
,
length
);
DEBUG
(
db
->
ctx
,
"Reading signature of %
zu
bytes
\n
"
,
length
);
// Allocate space
*
dst
=
malloc
(
length
);
...
...
src/writer.c
View file @
36b9fd75
...
...
@@ -612,7 +612,7 @@ static int loc_writer_create_signature(struct loc_writer* writer,
goto
END
;
}
DEBUG
(
writer
->
ctx
,
"Successfully generated signature of %
l
u bytes
\n
"
,
*
length
);
DEBUG
(
writer
->
ctx
,
"Successfully generated signature of %
z
u bytes
\n
"
,
*
length
);
r
=
0
;
// Dump signature
...
...
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