On Sun, Mar 07, 2004 at 09:41:30AM +1100, Adam Summerfield wrote:
> Darren,
>
> Does not compile on Solaris Sparc 9 ....
>
> cc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=9 -DIPFILTER_LOG -DIPFILTER_COMPILED
> -DIPFILTER_LOOKUP -DIPFILTER_SCAN -DIPFILTER_SYNC
> -DIPFILTER_CKSUM -c ../../ip_pool.c -o sparcv7/ip_pool_u.o
> ../../ip_pool.c: In function `ip_pool_statistics':
> ../../ip_pool.c:288: error: request for member `iplo_size' in something not a
> structure or union
> ../../ip_pool.c:291: error: `cha' undeclared (first use in this function)
> ../../ip_pool.c:291: error: (Each undeclared identifier is reported only once
> ../../ip_pool.c:291: error: for each function it appears in.)
> ../../ip_pool.c:291: error: parse error before "r"
> *** Error code 1
Apply the attached diff, then try again.
bye,
Harold
--- ip_pool.c.orig 2004-03-06 15:33:06.000000000 +0100
+++ ip_pool.c 2004-03-07 00:22:24.000000000 +0100
@@ -283,12 +283,12 @@
iplookupop_t *op;
{
ip_pool_stat_t stats;
- int unit, i, err;
+ int unit, i, err = 0;
- if (op.iplo_size != sizeof(ipoolstat))
+ if (op->iplo_size != sizeof(ipoolstat))
return EINVAL;
- bcopy((cha r*)&ipoolstat, (char *)&stats, sizeof(stats));
+ bcopy((char *)&ipoolstat, (char *)&stats, sizeof(stats));
unit = op->iplo_unit;
if (unit == IPL_LOGALL) {
for (i = 0; i < IPL_LOGSIZE; i++)