- Fix a crash when vtysh was executed.

- Remove useless target (install is default) in depends

PR:		ports/93094
Reported by:	TANABE Hiroyasu <h@cosat.com>, John <freebsd@moe.co.uk>
Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2006-02-10 12:45:36 +00:00
parent fa0f5bbf79
commit 8558006a0a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155641
3 changed files with 15 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= quagga
PORTVERSION= 0.99.3
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://quagga.net/download/
@ -120,9 +120,9 @@ CONFIGURE_ARGS+=--enable-rtadv
.if defined(WITH_SNMP) && !defined(WITHOUT_SNMP)
CONFIGURE_ARGS+=--enable-snmp
.if defined(WITH_SNMP_4)
LIB_DEPENDS+=snmp.4:${PORTSDIR}/net-mgmt/net-snmp4:install
LIB_DEPENDS+=snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.else
LIB_DEPENDS+=netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp:install
LIB_DEPENDS+=netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp
.endif
.endif

View File

@ -5,7 +5,7 @@
/* Actual data stream (variable length). */
- unsigned char data[]; /* real dimension is buffer->size */
+ unsigned char *data; /* real dimension is buffer->size */
+ unsigned char data[0]; /* real dimension is buffer->size */
};
/* It should always be true that: 0 <= sp <= cp <= size */

View File

@ -0,0 +1,11 @@
--- ospfd/ospf_api.c.orig Thu Nov 24 21:51:16 2005
+++ ospfd/ospf_api.c Wed Feb 8 11:49:31 2006
@@ -68,7 +68,7 @@
struct opaque_lsa
{
struct lsa_header header;
- u_char mydata[];
+ u_char mydata[0];
};
struct opaque_lsa *olsa;