-
Notifications
You must be signed in to change notification settings - Fork 188
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
CFE-3415: Fixed some more sign-compare warnings #4458
Conversation
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.
I think we should try to not rely on errno
after calling strtoul()
. Let implement a StringToUlong()
function that would use strtoul()
and in case of strtoul()
returns 0 it would check if the string was "0"
(or any number of zeroes).
@cf-bottom jenkins, please! |
Sure, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/6062/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-6062/ |
6ec6b23
to
668874a
Compare
This pull request fixes 15 alerts when merging 668874a89e34a14d8cb7a04c92009144ce613824 into 2f27a1c - view on LGTM.com fixed alerts:
|
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.
Looks good to me otherwise. Thanks for so many nice changes!!! 👏
Changelog: Title Ticket: CFE-3415 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
This pull request fixes 15 alerts when merging 5230a28 into eefee53 - view on LGTM.com fixed alerts:
|
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.
Looks good to me. Thanks!
No description provided.