From owner-freebsd-hackers Tue Aug 1 17:46:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cicuta.babolo.ru (babolo.ru [194.58.226.160]) by hub.freebsd.org (Postfix) with ESMTP id C4A9E37BFA5 for ; Tue, 1 Aug 2000 17:46:24 -0700 (PDT) (envelope-from babolo@cicuta.babolo.ru) Received: (from babolo@localhost) by cicuta.babolo.ru (8.9.3/8.9.3) id EAA01875 for freebsd-hackers@FreeBSD.ORG; Wed, 2 Aug 2000 04:46:47 +0400 (MSD) (envelope-from babolo) Message-Id: <200008020046.EAA01875@cicuta.babolo.ru> Subject: malloc to arrays? To: freebsd-hackers@FreeBSD.ORG Date: Wed, 2 Aug 2000 04:46:47 +0400 (MSD) From: .@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry I have no other direction to ask this: I have declaration: u_int32_t *(tcpcash_addr[256]); and want malloc some memory for tcpcash_addr: tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n); and have an error: ra-sum.c:386: cast specifies array type *** Error code 1 How can I cast pointer from malloc for tcpcash_addr? -- Александр А.Бабайлов mailto://babolo@links.ru/ http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message