added 'const' to function prototype vars where possible

Added the 'const' qualifier to function prototype variables where possible.
In addition, reduced some functions to file-scope with 'static' where possible.

Also made a few minor changes to remove extra whitespace, and fixed a bug
in create_fwknoprc() to ensure the new fwknoprc filehandle is closed.
This commit is contained in:
Michael Rash
2011-10-25 21:00:40 -04:00
parent 85377267e2
commit 6388e8ac7f
48 changed files with 402 additions and 396 deletions

View File

@@ -34,7 +34,7 @@
/* Generic hex dump function.
*/
void
hex_dump(unsigned char *data, int size)
hex_dump(const unsigned char *data, const int size)
{
int ln, i, j = 0;
char ascii_str[17] = {0};