mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-24 07:16:43 +00:00
Fix compiler warnings
This commit is contained in:
parent
6783656179
commit
ff0c7ad9cb
@ -256,7 +256,7 @@ Java_org_servalproject_servald_mdp_MeshSocket__1send(JNIEnv * env,
|
|||||||
|
|
||||||
/* Fill mdp structure. */
|
/* Fill mdp structure. */
|
||||||
|
|
||||||
mdp.packetTypeAndFlags = MDP_TX | flags & MDP_FLAG_MASK;
|
mdp.packetTypeAndFlags = MDP_TX | (flags & MDP_FLAG_MASK);
|
||||||
mdp.out.queue = qos;
|
mdp.out.queue = qos;
|
||||||
mdp.out.src.port = localport;
|
mdp.out.src.port = localport;
|
||||||
if (localsid != NULL) {
|
if (localsid != NULL) {
|
||||||
@ -313,7 +313,7 @@ Java_org_servalproject_servald_mdp_MeshSocket__1receive(JNIEnv * env,
|
|||||||
length = (*env)->GetIntField(env, mdppack, f_meshpacket_length);
|
length = (*env)->GetIntField(env, mdppack, f_meshpacket_length);
|
||||||
|
|
||||||
/* Receive data. */
|
/* Receive data. */
|
||||||
if (res = (overlay_mdp_recv(fd, &mdp, localport, &ttl))) {
|
if ((res = (overlay_mdp_recv(fd, &mdp, localport, &ttl)))) {
|
||||||
if (res == -2) {
|
if (res == -2) {
|
||||||
/* Socket is closed. */
|
/* Socket is closed. */
|
||||||
msg = "Socket closed";
|
msg = "Socket closed";
|
||||||
|
Loading…
Reference in New Issue
Block a user