Skip to content

Commit

Permalink
Merge branch 'raspbian'
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedeer committed Dec 24, 2014
2 parents 4280af5 + 22255a6 commit 898e5bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ int handle_frame(protocol_frame *frame)
* It checks for basic inconsistiencies and allocates the
* protocol_frame structure.
*/
int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len)
int parse_lossless_packet(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *sender_uc)
{
protocol_frame *frame = NULL;

Expand Down Expand Up @@ -859,6 +859,11 @@ int main(int argc, char *argv[])
}
}

if(!client_mode && min_log_level == L_UNSET)
{
min_log_level = L_INFO;
}

on_exit(cleanup, NULL);

print_version();
Expand Down Expand Up @@ -904,10 +909,6 @@ int main(int argc, char *argv[])
}
else
{
if(min_log_level == L_UNSET)
{
min_log_level = L_INFO;
}
/* Connect to the forwarded service */
// client_socket = get_client_socket();
if(!load_save(tox))
Expand Down
2 changes: 1 addition & 1 deletion main.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ extern int local_port;
extern int select_nfds;
extern tunnel *by_id;

int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len);
int parse_lossless_packet(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *sender_uc);
tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber);
void tunnel_delete(tunnel *t);

Expand Down

0 comments on commit 898e5bf

Please sign in to comment.