-
Notifications
You must be signed in to change notification settings - Fork 25
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 #76, Update const-ness of inputs #77
Conversation
@@ -157,7 +157,7 @@ | |||
} | |||
} | |||
|
|||
uint32 FM_GetFilenameState(char *Filename, uint32 BufferSize, bool FileInfoCmd) | |||
uint32 FM_GetFilenameState(const char *Filename, uint32 BufferSize, bool FileInfoCmd) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
@@ -157,7 +157,7 @@ | |||
} | |||
} | |||
|
|||
uint32 FM_GetFilenameState(char *Filename, uint32 BufferSize, bool FileInfoCmd) | |||
uint32 FM_GetFilenameState(const char *Filename, uint32 BufferSize, bool FileInfoCmd) |
Check notice
Code scanning / CodeQL-coding-standard
Function too long
8aa09f3
to
fb8ab6b
Compare
Correct the const qualifiers on functions in fm_cmd_utils.c. Most of these functions do not modify their inputs, but were not const, except for the one function that _was_ marked const and _did_ modify its inputs (backwards).
fb8ab6b
to
dbb49a4
Compare
@@ -242,18 +242,22 @@ | |||
/* */ | |||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |||
|
|||
uint32 FM_VerifyNameValid(char *Name, uint32 BufferSize, uint32 EventID, const char *CmdText) | |||
uint32 FM_VerifyNameValid(const char *Name, uint32 BufferSize, uint32 EventID, const char *CmdText) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
@@ -265,13 +269,14 @@ | |||
/* */ | |||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |||
|
|||
bool FM_VerifyFileState(FM_File_States State, char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText) | |||
bool FM_VerifyFileState(FM_File_States State, const char *Filename, uint32 BufferSize, uint32 EventID, |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
@@ -265,13 +269,14 @@ | |||
/* */ | |||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |||
|
|||
bool FM_VerifyFileState(FM_File_States State, char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText) | |||
bool FM_VerifyFileState(FM_File_States State, const char *Filename, uint32 BufferSize, uint32 EventID, |
Check notice
Code scanning / CodeQL-coding-standard
Function too long
Checklist (Please check before submitting)
Describe the contribution
Correct the const qualifiers on functions in fm_cmd_utils.c. Most of these functions do not modify their inputs, but were not const, except for the one function that was marked const and did modify its inputs (backwards).
Fixes #76
Testing performed
Build and run tests
Expected behavior changes
Nothing visible externally. Message processors no longer modify input buffers.
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.