-
Notifications
You must be signed in to change notification settings - Fork 38
Fix #58, Replace ctime with ctime_r #59
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
Fix #58, Replace ctime with ctime_r #59
Conversation
| { | ||
| int RtnCode; | ||
| int RtnCode; | ||
| char TimeBuff[50]; |
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.
Do we have a buffer size macro?
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.
Nothing I could find built in. Documentation says a minimum of 26. I'll just get truncated (and it's just an info message) so I didn't think it was worth any additional effort. If you'd prefer we could just delete the message.
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.
The maximum is locality based, which is likely why it's not defined since a locality could be added that requires more space.
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.
Let's leave it, though I wonder if we might want to define something using cmake in the future
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 don't consider it a configuration parameter. Macro is fine but I wouldn't expose it outside this unit.
|
CCB 2020-08-26 - APPROVED, @ArielSAdamsNASA take another look |
Describe the contribution
Fix #58 - replace ctime (which generates LGTM warning) with ctime_r
Testing performed
Built and ran code in verbose mode, confirmed time output
Expected behavior changes
Eliminate LGTM warning
System(s) tested on
Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC