Skip to content

Conversation

@pprindeville
Copy link
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 [email protected]

@pprindeville
Copy link
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 <[email protected]>
@pprindeville
Copy link
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