[pisa-src] r1809 - in trunk/pairing: packet_handler_accept.c packet_handler_accept.h

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 15:13:32 +0100

Author: biurrun
Date: Thu Nov 26 15:13:32 2009
New Revision: 1809

Log:
Mark functions only used within packet_handler_accept.c as static.

Modified:
   trunk/pairing/packet_handler_accept.c
   trunk/pairing/packet_handler_accept.h

Modified: trunk/pairing/packet_handler_accept.c
==============================================================================
--- trunk/pairing/packet_handler_accept.c       Thu Nov 26 15:11:39 2009        
(r1808)
+++ trunk/pairing/packet_handler_accept.c       Thu Nov 26 15:13:32 2009        
(r1809)
@@ -21,7 +21,7 @@
  *
  *  @return A pointer to the header_general structure. Returns NULL on error.
  */
-header_general* create_ack_1_struct(void)
+static header_general* create_ack_1_struct(void)
 {
         config_t cfg;
         const char *nickname, *ipv4_addr, *ipv6_addr;
@@ -91,7 +91,7 @@
  *
  *  @return A pointer to the header_general structure. Returns NULL on error.
  */
-header_general* create_ack_2_struct(char *password)
+static header_general* create_ack_2_struct(char *password)
 {
         assert(password != NULL);
 
@@ -118,7 +118,7 @@
  *  @param password A pointer to string containing the received password.
  *  @return 1 if the password matches, 0 if the password does not match
  */
-int check_password(char *password)
+static int check_password(char *password)
 {
         FILE *file;
         char file_contents[2*SHA_DIGEST_LENGTH+1];
@@ -223,7 +223,7 @@
  *
  *  @return 1 if everything goes well; 0 otherwise
  */
-int store_pwd(char *nickname, long int expr1, long int expr2, char *password)
+static int store_pwd(char *nickname, long int expr1, long int expr2, char 
*password)
 {
 
     assert(nickname != NULL);

Modified: trunk/pairing/packet_handler_accept.h
==============================================================================
--- trunk/pairing/packet_handler_accept.h       Thu Nov 26 15:11:39 2009        
(r1808)
+++ trunk/pairing/packet_handler_accept.h       Thu Nov 26 15:13:32 2009        
(r1809)
@@ -24,8 +24,6 @@
 
 // Function prototypes
 int handle_packet_password(struct sockaddr_in6 *socket_addr, header_password 
*hdr_pwd);
-int check_password(char *password);
 int handle_packet_pwd_request(struct sockaddr_in6 *socket_addr, 
header_pwd_request *hdr_pwd_request);
-int store_pwd(char *nickname, long int expr1, long int expr2, char *password);
 
 #endif /* PISA_PACKET_HANDLER_ACCEPT_H */

Other related posts:

  • » [pisa-src] r1809 - in trunk/pairing: packet_handler_accept.c packet_handler_accept.h - Diego Biurrun