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

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 17:09:30 +0100

Author: biurrun
Date: Thu Nov 26 17:09:30 2009
New Revision: 1825

Log:
Move ERROR_INVALID_PWD / ERROR_NOT_CONNECTED definitions to where they are used.

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

Modified: trunk/pairing/common_headers.h
==============================================================================
--- trunk/pairing/common_headers.h      Thu Nov 26 16:44:37 2009        (r1824)
+++ trunk/pairing/common_headers.h      Thu Nov 26 17:09:30 2009        (r1825)
@@ -33,9 +33,6 @@
 
 #define LENGTH_ERROR_STRING 128
 
-#define ERROR_INVALID_PWD      0
-#define ERROR_NOT_CONNECTED    1
-
 /* Structure to hold a password */
 typedef struct header_password {
        uint8_t password[LENGTH_PASSWORD];

Modified: trunk/pairing/packet_handler_accept.c
==============================================================================
--- trunk/pairing/packet_handler_accept.c       Thu Nov 26 16:44:37 2009        
(r1824)
+++ trunk/pairing/packet_handler_accept.c       Thu Nov 26 17:09:30 2009        
(r1825)
@@ -19,6 +19,10 @@
 /** Default password file is set statically. **/
 #define FILE_PWD "sha.txt"
 
+#define ERROR_INVALID_PWD   0
+#define ERROR_NOT_CONNECTED 1
+
+
 /** Creates a header_general structure which holds a header_ack_1 structure 
and fills both.
  *
  *  @return A pointer to the header_general structure. Returns NULL on error.

Other related posts:

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