Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
aa212c4b
Commit
aa212c4b
authored
1 month ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
c/tools: use memset instead of bzero
parent
48254a67
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
c/opendht.cpp
+1
-1
1 addition, 1 deletion
c/opendht.cpp
with
1 addition
and
1 deletion
c/opendht.cpp
+
1
−
1
View file @
aa212c4b
...
@@ -302,7 +302,7 @@ OPENDHT_C_PUBLIC void dht_identity_delete(dht_identity* id) {
...
@@ -302,7 +302,7 @@ OPENDHT_C_PUBLIC void dht_identity_delete(dht_identity* id) {
// config
// config
void
dht_runner_config_default
(
dht_runner_config
*
config
)
{
void
dht_runner_config_default
(
dht_runner_config
*
config
)
{
bzero
(
config
,
sizeof
(
dht_runner_config
));
memset
(
config
,
0
,
sizeof
(
dht_runner_config
));
config
->
threaded
=
true
;
config
->
threaded
=
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment