gettimeofday(&ts, NULL);
char name[1024];
- snprintf(name, sizeof(name), "%sgraph_%ld_%03ld.json", namesprefix, ts.tv_sec, ts.tv_usec / 1000);
+ snprintf(name, sizeof(name), "%sgraph_%ld_%03ld.json", namesprefix, ts.tv_sec, ts.tv_usec / 1000L);
exportmeshgraph(name);
}
MESHLINK_EPEER, ///< A peer caused an error
MESHLINK_ENOTSUP, ///< The operation is not supported in the current configuration of MeshLink
MESHLINK_EBUSY, ///< The MeshLink instance is already in use by another process
- MESHLINK_EBLACKLISTED, ///< The operation is not allowed because the node is blacklisted
+ MESHLINK_EBLACKLISTED ///< The operation is not allowed because the node is blacklisted
} meshlink_errno_t;
/// Device class
}
sockaddr_t packmsg_get_sockaddr(packmsg_input_t *in) {
- sockaddr_t sa = {0};
+ sockaddr_t sa;
+ memset(&sa, 0, sizeof sa);
int8_t type;
const void *data;
getsockopt(s, IPPROTO_IP, IP_MTU, &mtu, &optlen);
}
+#else
+ (void)s;
#endif
if(!mtu || mtu == 65535) {