Author: biurrun Date: Thu Nov 26 16:14:45 2009 New Revision: 1818 Log: Mark functions only used in one file as static. Remove the declarations of these functions from header files. Modified: trunk/pairing/hash.c trunk/pairing/hash.h trunk/pairing/libconfig_wrapper.c trunk/pairing/libconfig_wrapper.h trunk/pairing/packet_handler.c trunk/pairing/packet_handler.h Modified: trunk/pairing/hash.c ============================================================================== --- trunk/pairing/hash.c Thu Nov 26 16:05:11 2009 (r1817) +++ trunk/pairing/hash.c Thu Nov 26 16:14:45 2009 (r1818) @@ -20,7 +20,7 @@ * @return The ASCII character representing /num/ in hexidecimal. * @return Returns 0 on failure. */ -char dec2hex(int num) +static char dec2hex(int num) { char c = 0; @@ -42,7 +42,7 @@ * * @return 0 upon success, 1 with failure */ -int atoh(char *ascii_str, char *hex_str) +static int atoh(char *ascii_str, char *hex_str) { int length = strlen(ascii_str); int i; Modified: trunk/pairing/hash.h ============================================================================== --- trunk/pairing/hash.h Thu Nov 26 16:05:11 2009 (r1817) +++ trunk/pairing/hash.h Thu Nov 26 16:14:45 2009 (r1818) @@ -20,8 +20,6 @@ #include <assert.h> // Function prototypes -char dec2hex(int num); -int atoh(char *ascii_str, char *hex_str); void get_sha(char *original, char *hash); #endif /* PISA_HASH_H */ Modified: trunk/pairing/libconfig_wrapper.c ============================================================================== --- trunk/pairing/libconfig_wrapper.c Thu Nov 26 16:05:11 2009 (r1817) +++ trunk/pairing/libconfig_wrapper.c Thu Nov 26 16:14:45 2009 (r1818) @@ -86,7 +86,7 @@ * * @return 1 on success; 0 on failure */ -int add_hit(char *info, char *expiration) +static int add_hit(char *info, char *expiration) { int hit_existed = 0; config_setting_t *allowed_hosts; Modified: trunk/pairing/libconfig_wrapper.h ============================================================================== --- trunk/pairing/libconfig_wrapper.h Thu Nov 26 16:05:11 2009 (r1817) +++ trunk/pairing/libconfig_wrapper.h Thu Nov 26 16:14:45 2009 (r1818) @@ -28,7 +28,6 @@ // Function prototypes int write_config(char *info, char *expiration, configtype type); int get_config_setting(const char *filename, const char *path, int type, void *return_val, int strlen); -int add_hit(char *info, char *expiration); config_setting_t *check_list(const char * list_name); config_setting_t *check_list_in_config(const char * list_name, config_t *config); pisa_hitlist_entry *find_hit_in_hitlist(char *hit); Modified: trunk/pairing/packet_handler.c ============================================================================== --- trunk/pairing/packet_handler.c Thu Nov 26 16:05:11 2009 (r1817) +++ trunk/pairing/packet_handler.c Thu Nov 26 16:14:45 2009 (r1818) @@ -20,7 +20,7 @@ * * @return The error type */ -int handle_packet_error(struct sockaddr_in6 *socket_addr, header_error *hdr_error) +static int handle_packet_error(struct sockaddr_in6 *socket_addr, header_error *hdr_error) { assert(socket_addr != NULL); assert(hdr_error != NULL); Modified: trunk/pairing/packet_handler.h ============================================================================== --- trunk/pairing/packet_handler.h Thu Nov 26 16:05:11 2009 (r1817) +++ trunk/pairing/packet_handler.h Thu Nov 26 16:14:45 2009 (r1818) @@ -25,6 +25,5 @@ // Function prototypes int handle_packet(struct sockaddr_in6 *socket_addr, header_general *gen_hdr, int *msg_type, int *return_value); -int handle_packet_error(struct sockaddr_in6 *socket_addr, header_error *hdr_error); #endif /* PISA_PACKET_HANDLER_H */