bin/56653: [patch] Removal of non-standard void * arithmetics

Ruslan Ermilov ru at FreeBSD.org
Tue Sep 9 17:00:36 PDT 2003


The following reply was made to PR bin/56653; it has been noted by GNATS.

From: Ruslan Ermilov <ru at FreeBSD.org>
To: Stefan Farfeleder <stefan at fafoe.narf.at>
Cc: bug-followup at FreeBSD.org
Subject: Re: bin/56653: [patch] Removal of non-standard void * arithmetics
Date: Wed, 10 Sep 2003 02:52:18 +0300

 On Tue, Sep 09, 2003 at 10:25:44PM +0200, Stefan Farfeleder wrote:
 > 
 > Index: src/lib/libalias/alias_db.c
 > ===================================================================
 > RCS file: /usr/home/ncvs/src/lib/libalias/alias_db.c,v
 > retrieving revision 1.53
 > diff -u -r1.53 alias_db.c
 > --- src/lib/libalias/alias_db.c	1 Jun 2003 23:15:00 -0000	1.53
 > +++ src/lib/libalias/alias_db.c	9 Sep 2003 13:00:32 -0000
 > @@ -2732,7 +2732,7 @@
 >  
 >      rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
 >  
 > -    return ((void *)cmd - buf);
 > +    return ((char *)cmd - (char *)buf);
 >  }
 >  #endif /* IPFW2 */
 >  
 I've committed this part of the patch, thanks!
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Sysadmin and DBA,
 ru at sunbay.com		Sunbay Software Ltd,
 ru at FreeBSD.org		FreeBSD committer


More information about the freebsd-bugs mailing list