mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
return in functions
This commit is contained in:
parent
2445e61a3f
commit
a7899bf787
1 changed files with 3 additions and 1 deletions
|
@ -429,13 +429,13 @@ int handle_network_msg(char* msg)
|
|||
blob_buf_init(&network_buf, 0);
|
||||
blobmsg_add_json_from_string(&network_buf, msg);
|
||||
|
||||
|
||||
printf("TO JSON AGAIN PARSING: %s\n",blobmsg_format_json(network_buf.head, true));
|
||||
|
||||
printf("PARSING NETWORK MSG!\n");
|
||||
blobmsg_parse(network_policy, __NETWORK_MAX, tb, blob_data(network_buf.head), blob_len(network_buf.head));
|
||||
printf("PARSING FINISHED NETWORK MSG!\n");
|
||||
|
||||
return -1;
|
||||
|
||||
|
||||
if(!tb[NETWORK_METHOD] ||!tb[NETWORK_DATA] )
|
||||
|
@ -452,6 +452,8 @@ int handle_network_msg(char* msg)
|
|||
printf("METHOD! : %s\n", method);
|
||||
printf("DATA: %s\n", data);
|
||||
|
||||
return -1;
|
||||
|
||||
|
||||
printf("GET STRING FINISHED NETWORK MSG!\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue