Date: Fri, 8 Dec 2000 12:56:02 -0800 (PST) From: wpaul@FreeBSD.ORG (Bill Paul) To: wkb@freebie.demon.nl (Wilko Bulte) Cc: jhb@FreeBSD.org, alpha@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/conf GENERIC Message-ID: <20001208205603.C401D37B404@hub.freebsd.org> In-Reply-To: <20001208212540.A750@freebie.demon.nl> from Wilko Bulte at "Dec 8, 2000 09:25:40 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
While looking over the code, something jumped out at me. In epic_common_attach(), we have this: i = sizeof(struct epic_frag_list)*TX_RING_SIZE + sizeof(struct epic_rx_desc)*RX_RING_SIZE + sizeof(struct epic_tx_desc)*TX_RING_SIZE + PAGE_SIZE, sc->pool = (epic_softc_t *) malloc( i, M_DEVBUF, M_NOWAIT); There are two C statements here: one to assign a value to i, and another to malloc() i bytes worth of space and leave the address of the buffer in sc->pool. Except the first statement doesn't end with a semicolon. How is this not a syntax error? -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001208205603.C401D37B404>