Date: Mon, 21 Oct 2013 06:25:48 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331092 - in head/net/ladvd: . files Message-ID: <201310210625.r9L6Pmrm074937@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Oct 21 06:25:48 2013 New Revision: 331092 URL: http://svnweb.freebsd.org/changeset/ports/331092 Log: Fix build with -CURRENT. PR: ports/182397 Submitted by: Sten Spans <sten blinkenlights nl> (partially) Added: head/net/ladvd/files/patch-src__cli.c (contents, props changed) head/net/ladvd/files/patch-src__compat__setproctitle.c (contents, props changed) head/net/ladvd/files/patch-src__compat__vis.c (contents, props changed) head/net/ladvd/files/patch-src__compat__vis.h (contents, props changed) head/net/ladvd/files/patch-src__proto__tlv.c (contents, props changed) Modified: head/net/ladvd/Makefile Modified: head/net/ladvd/Makefile ============================================================================== --- head/net/ladvd/Makefile Mon Oct 21 06:01:57 2013 (r331091) +++ head/net/ladvd/Makefile Mon Oct 21 06:25:48 2013 (r331092) @@ -3,6 +3,7 @@ PORTNAME= ladvd PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= GOOGLE_CODE \ http://blinkenlights.nl/software/ladvd/ Added: head/net/ladvd/files/patch-src__cli.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ladvd/files/patch-src__cli.c Mon Oct 21 06:25:48 2013 (r331092) @@ -0,0 +1,10 @@ +--- ./src/cli.c.orig 2012-01-01 16:17:19.000000000 -0800 ++++ ./src/cli.c 2013-10-20 23:18:59.000000000 -0700 +@@ -24,6 +24,7 @@ + #include <sys/file.h> + #include <sys/un.h> + #include <netdb.h> ++#include <limits.h> + + extern struct proto protos[]; + int status = EXIT_SUCCESS; Added: head/net/ladvd/files/patch-src__compat__setproctitle.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ladvd/files/patch-src__compat__setproctitle.c Mon Oct 21 06:25:48 2013 (r331092) @@ -0,0 +1,11 @@ +--- ./src/compat/setproctitle.c.orig 2011-12-20 05:11:03.000000000 -0800 ++++ ./src/compat/setproctitle.c 2013-10-20 23:21:24.000000000 -0700 +@@ -144,7 +144,7 @@ + vsnprintf(buf + len, sizeof(buf) - len , fmt, ap); + } + va_end(ap); +- strnvis(ptitle, buf, sizeof(ptitle), ++ strnvis(ptitle, sizeof(ptitle), buf, + VIS_CSTYLE|VIS_NL|VIS_TAB|VIS_OCTAL); + + #if SPT_TYPE == SPT_PSTAT Added: head/net/ladvd/files/patch-src__compat__vis.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ladvd/files/patch-src__compat__vis.c Mon Oct 21 06:25:48 2013 (r331092) @@ -0,0 +1,11 @@ +--- ./src/compat/vis.c.orig 2011-12-20 05:11:03.000000000 -0800 ++++ ./src/compat/vis.c 2013-10-20 23:20:15.000000000 -0700 +@@ -161,7 +161,7 @@ + } + + int +-strnvis(char *dst, const char *src, size_t siz, int flag) ++strnvis(char *dst, size_t siz, const char *src, int flag) + { + char *start, *end; + char tbuf[5]; Added: head/net/ladvd/files/patch-src__compat__vis.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ladvd/files/patch-src__compat__vis.h Mon Oct 21 06:25:48 2013 (r331092) @@ -0,0 +1,11 @@ +--- ./src/compat/vis.h.orig 2011-12-20 05:11:03.000000000 -0800 ++++ ./src/compat/vis.h 2013-10-20 23:20:50.000000000 -0700 +@@ -80,7 +80,7 @@ + + char *vis(char *, int, int, int); + int strvis(char *, const char *, int); +-int strnvis(char *, const char *, size_t, int); ++int strnvis(char *, size_t, const char *, int); + int strvisx(char *, const char *, size_t, int); + int strunvis(char *, const char *); + int unvis(char *, char, int *, int); Added: head/net/ladvd/files/patch-src__proto__tlv.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ladvd/files/patch-src__proto__tlv.c Mon Oct 21 06:25:48 2013 (r331092) @@ -0,0 +1,20 @@ +--- ./src/proto/tlv.c.orig 2012-01-01 16:17:19.000000000 -0800 ++++ ./src/proto/tlv.c 2013-10-20 23:22:04.000000000 -0700 +@@ -41,7 +41,7 @@ + *(src + srclen) = '\0'; + len = srclen * 4 + 1; + str = my_malloc(len); +- strnvis(str, src, len, VIS_NL|VIS_TAB|VIS_GLOB|VIS_OCTAL); ++ strnvis(str, len, src, VIS_NL|VIS_TAB|VIS_GLOB|VIS_OCTAL); + break; + case PEER_CAP: + memcpy(&cap, value, sizeof(uint16_t)); +@@ -92,7 +92,7 @@ + *(str + srclen) = '\0'; + len = srclen * 4 + 1; + safe = my_malloc(len); +- strnvis(safe, str, len, VIS_SAFE|VIS_OCTAL); ++ strnvis(safe, len, str, VIS_SAFE|VIS_OCTAL); + return safe; + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310210625.r9L6Pmrm074937>