From 59b34e423beb75fcd3e3c8abc2c05fe60aca26bc Mon Sep 17 00:00:00 2001 From: SilentSand Date: Fri, 26 Jul 2013 04:02:17 -0400 Subject: Formatting. Many stylistic changes, mostly formatting code more closely to the coding style. --- core/Messenger.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'core/Messenger.c') diff --git a/core/Messenger.c b/core/Messenger.c index 11613cbb..d58e895c 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -38,8 +38,6 @@ typedef struct uint8_t userstatus_sent; uint16_t info_size; /* length of the info */ }Friend; - - uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; @@ -57,7 +55,6 @@ static uint32_t numfriends; 0 if we are offline static uint8_t online; */ - /* return the friend id associated to that public key. return -1 if no such friend */ int getfriend_id(uint8_t * client_id) @@ -76,7 +73,6 @@ int getfriend_id(uint8_t * client_id) return -1; } - /* copies the public key associated to that friend id into client_id buffer. make sure that client_id is of size CLIENT_ID_SIZE. return 0 if success @@ -96,7 +92,6 @@ int getclient_id(int friend_id, uint8_t * client_id) return -1; } - /* add a friend set the data that will be sent along with friend request client_id is the client id of the friend @@ -191,7 +186,6 @@ int m_delfriend(int friendnumber) return 0; } - /* return 4 if friend is online return 3 if friend is confirmed return 2 if the friend request was sent @@ -206,7 +200,6 @@ int m_friendstatus(int friendnumber) return friendlist[friendnumber].status; } - /* send a text chat message to an online friend return 1 if packet was successfully put into the send queue return 0 if it was not */ @@ -239,7 +232,6 @@ static int m_sendname(int friendnumber, uint8_t * name) /* set the name of a friend return 0 if success return -1 if failure */ - static int setfriendname(int friendnumber, uint8_t * name) { if(friendnumber >= numfriends || friendnumber < 0) @@ -250,7 +242,6 @@ static int setfriendname(int friendnumber, uint8_t * name) return 0; } - /* Set our nickname name must be a string of maximum MAX_NAME_LENGTH length. return 0 if success @@ -352,6 +343,7 @@ static int set_friend_userstatus(int friendnumber, uint8_t * status, uint16_t le friendlist[friendnumber].userstatus_length = length; return 0; } + /* static void (*friend_request)(uint8_t *, uint8_t *, uint16_t); static uint8_t friend_request_isset = 0; @@ -362,7 +354,6 @@ void m_callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t)) callback_friendrequest(function); } - static void (*friend_message)(int, uint8_t *, uint16_t); static uint8_t friend_message_isset = 0; @@ -373,7 +364,6 @@ void m_callback_friendmessage(void (*function)(int, uint8_t *, uint16_t)) friend_message_isset = 1; } - static void (*friend_namechange)(int, uint8_t *, uint16_t); static uint8_t friend_namechange_isset = 0; void m_callback_namechange(void (*function)(int, uint8_t *, uint16_t)) @@ -520,8 +510,6 @@ static void doFriends() } } - - static void doInbound() { uint8_t secret_nonce[crypto_box_NONCEBYTES]; -- cgit v1.2.3