added 'const' to function prototype vars where possible
authorMichael Rash <mbr@cipherdyne.org>
Wed, 26 Oct 2011 01:00:40 +0000 (21:00 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 26 Oct 2011 01:00:40 +0000 (21:00 -0400)
commit6388e8ac7fab3d89b164862c9e113fed37e9f397
treed47330c734ab31140cb625a768d88e5bd7296b86
parent85377267e299118d5302afde3dfeed426b353879
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.
48 files changed:
client/config_init.c
client/fwknop.c
client/getpasswd.c
client/spa_comm.c
client/spa_comm.h
client/utils.c
client/utils.h
lib/base64.c
lib/base64.h
lib/cipher_funcs.c
lib/cipher_funcs.h
lib/digest.c
lib/fko.h
lib/fko_client_timeout.c
lib/fko_decode.c
lib/fko_digest.c
lib/fko_encode.c
lib/fko_encryption.c
lib/fko_error.c
lib/fko_funcs.c
lib/fko_message.c
lib/fko_nat_access.c
lib/fko_rand_value.c
lib/fko_server_auth.c
lib/fko_timestamp.c
lib/gpgme_funcs.c
lib/gpgme_funcs.h
lib/rijndael.c
server/access.c
server/access.h
server/config_init.c
server/config_init.h
server/extcmd.c
server/extcmd.h
server/fw_util.h
server/fw_util_ipf.c
server/fw_util_ipfw.c
server/fw_util_ipfw.h
server/fw_util_iptables.c
server/fw_util_pf.c
server/fwknopd.c
server/fwknopd_errors.c
server/fwknopd_errors.h
server/incoming_spa.c
server/process_packet.c
server/tcp_server.c
server/utils.c
server/utils.h