Skip to content

More cleanup regarding headers, declarations, etc.#13

Open
pprindeville wants to merge 1 commit into
phokz:masterfrom
pprindeville:const-strings
Open

More cleanup regarding headers, declarations, etc.#13
pprindeville wants to merge 1 commit into
phokz:masterfrom
pprindeville:const-strings

Conversation

@pprindeville

Copy link
Copy Markdown
Contributor

Use ANSI prototypes for functions. Make sure <time.h> is included
everywhere time() gets called. Don't use unsafe sprintf() but
snprintf() instead. Use const char * strings where appropriate
(i.e. where arguments don't get modified as side-effects).

Signed-off-by: Philip Prindeville philipp@redfish-solutions.com

@pprindeville

Copy link
Copy Markdown
Contributor Author

@phokz This is the other bit of cleanup I was talking about. I've built it on Linux using gcc7 and later.

@pprindeville pprindeville force-pushed the const-strings branch 4 times, most recently from 80bac24 to f260a38 Compare July 24, 2018 17:26
Use ANSI prototypes for functions.  Make sure <time.h> is included
everywhere time() gets called. Don't use unsafe sprintf() but
snprintf() instead.  Use const char * strings where appropriate
(i.e. where arguments don't get modified as side-effects).

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
@pprindeville

Copy link
Copy Markdown
Contributor Author

Any issues with this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant