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.