We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f7bb7 commit 8bf32c3Copy full SHA for 8bf32c3
src/rtp/net_udp.c
@@ -50,6 +50,7 @@
50
51
#include <pthread.h>
52
#include <stdalign.h>
53
+#include <stdint.h> // for uint16_t, uintmax_t
54
55
#ifndef _WIN32
56
#include <ifaddrs.h>
@@ -932,7 +933,7 @@ get_ifindex(const char *iface)
932
933
// check if the value isn't the index itself
934
char *endptr = NULL;
935
const long val = strtol(iface, &endptr, 0);
- if (*endptr == '\0' && val >= 0 && (unsigned) val <= UINT_MAX) {
936
+ if (*endptr == '\0' && val >= 0 && (uintmax_t) val <= UINT_MAX) {
937
char buf[IF_NAMESIZE];
938
if (if_indextoname(val, buf) != NULL) {
939
MSG(INFO, "Using mcast interface %s\n", buf);
0 commit comments