Skip to content

Conversation

@skliper
Copy link
Contributor

@skliper skliper commented Aug 24, 2020

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

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: bundle main (+ cfe/osal main) + this change

Additional context
None

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

@skliper skliper added this to the 3.3.0 milestone Aug 24, 2020
{
int RtnCode;
int RtnCode;
char TimeBuff[50];
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

@astrogeco
Copy link
Contributor

CCB 2020-08-26 - APPROVED, @ArielSAdamsNASA take another look

@yammajamma yammajamma added CCB:Approved Indicates code approval by CCB IC-20200826 labels Aug 26, 2020
@yammajamma yammajamma changed the base branch from main to integration-candidate August 26, 2020 19:26
@yammajamma yammajamma merged commit a5a5326 into nasa:integration-candidate Aug 26, 2020
@skliper skliper deleted the fix58-replace-ctime branch February 1, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code approval by CCB CCB:FastTrack enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LGTM issue - replace call to ctime with ctime_r

4 participants