diff options
Diffstat (limited to 'multimedia/libmp4v2/patches/patch-lib_rtp_net__udp.c')
-rw-r--r-- | multimedia/libmp4v2/patches/patch-lib_rtp_net__udp.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/multimedia/libmp4v2/patches/patch-lib_rtp_net__udp.c b/multimedia/libmp4v2/patches/patch-lib_rtp_net__udp.c new file mode 100644 index 00000000000..b1c7b0db4eb --- /dev/null +++ b/multimedia/libmp4v2/patches/patch-lib_rtp_net__udp.c @@ -0,0 +1,17 @@ +$NetBSD: patch-lib_rtp_net__udp.c,v 1.1 2017/05/06 18:12:00 maya Exp $ + +No point in collecting retlen if we're just going to ignore it. + +--- lib/rtp/net_udp.c.orig 2007-09-18 20:52:01.000000000 +0000 ++++ lib/rtp/net_udp.c +@@ -163,9 +163,8 @@ socket_error(const char *msg, ...) + va_end(ap); + rtp_message(LOG_ALERT, "ERROR: %s, (%d - %s)\n", buffer, e, ws_errs[i].errname); + #else +- uint32_t retlen; + va_start(ap, msg); +- retlen = vsnprintf(buffer, blen, msg, ap); ++ (void)vsnprintf(buffer, blen, msg, ap); + va_end(ap); + rtp_message(LOG_ALERT, "%s:%s", buffer, strerror(errno)); + #endif |