Date: Wed, 02 Aug 2000 19:20:20 -0500 From: Chris Costello <chris@calldei.com> To: Mike Smith <msmith@FreeBSD.ORG> Cc: "Daniel C. Sobral" <dcs@newsguy.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: malloc to arrays? Message-ID: <20000802192020.A386@holly.calldei.com> In-Reply-To: <200008021934.MAA01407@mass.osd.bsdi.com> References: <200008021913.XAA00739@cicuta.babolo.ru> <200008021934.MAA01407@mass.osd.bsdi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, August 02, 2000, Mike Smith wrote: > tcpcash_addr = (typeof(tcpcash_addr)) > malloc(sizeof(*tcpcash_addr) * > TCPCASH_ROWSIZE * > TCPCASH_COOLSIZE); Just as a note on coding style, this will only hide warnings caused by not including <stdlib.h>. malloc(3) returns void * and does not need to be cast. -- |Chris Costello <chris@calldei.com> |Last one out, turn off the computer! `------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000802192020.A386>