Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
5a9ada34
Commit
5a9ada34
authored
7 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
tor_zstd_format_version shouldn't be built when !HAVE_ZSTD
Fixes bug 25276; bugfix not in any released Tor.
parent
b56fd17d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/compress_zstd.c
+2
-0
2 additions, 0 deletions
src/common/compress_zstd.c
with
2 additions
and
0 deletions
src/common/compress_zstd.c
+
2
−
0
View file @
5a9ada34
...
...
@@ -58,6 +58,7 @@ tor_zstd_method_supported(void)
#endif
}
#ifdef HAVE_ZSTD
/** Format a zstd version number as a string in <b>buf</b>. */
static
void
tor_zstd_format_version
(
char
*
buf
,
size_t
buflen
,
unsigned
version_number
)
...
...
@@ -68,6 +69,7 @@ tor_zstd_format_version(char *buf, size_t buflen, unsigned version_number)
version_number
/
100
%
100
,
version_number
%
100
);
}
#endif
#define VERSION_STR_MAX_LEN 16
/* more than enough space for 99.99.99 */
...
...
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