-
Notifications
You must be signed in to change notification settings - Fork 19
Topic/syslog #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Topic/syslog #29
Changes from 1 commit
0d10a53
a6b58e3
7696d3f
eb773fa
92566eb
d2e90ce
36d7557
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,16 @@ project('tqftpserv', | |
| 'c', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This patch seems to have various interesting and useful changes lumped together in one patch, and as it's part of the same PR as everything else none of it can be merged without agreeing to it all... Split things into multiple patches and if possible multiple PRs. |
||
| version: '1.1', | ||
| default_options: [ | ||
| 'warning_level=1', | ||
| 'warning_level=3', | ||
| 'buildtype=release', | ||
| 'werror=true' | ||
| ]) | ||
|
|
||
| prefix = get_option('prefix') | ||
|
|
||
| # Add specific warning flags not covered by warning_level=3 | ||
| add_project_arguments('-Wsign-compare', '-Wunused-parameter', '-Wtype-limits', '-Wimplicit-function-declaration', language : 'c') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? Why did you select these flags? |
||
|
|
||
| zstd_dep = dependency('libzstd') | ||
| add_project_arguments('-DHAVE_ZSTD', language : 'c') | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ int zstd_decompress_file(const char *filename) | |
| return -1; | ||
| } | ||
|
|
||
| if (write(output_file_fd, decompressed_buffer, decompressed_size) != decompressed_size) { | ||
| if (write(output_file_fd, decompressed_buffer, decompressed_size) != (ssize_t)decompressed_size) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change decompressed_size to size_t or ssize_t.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, not done. I've asked to change its type to one of size_t types. |
||
| perror("write failed"); | ||
| close(output_file_fd); | ||
| free(decompressed_buffer); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please drop Gerrit tags. We don't use Gerrit here.