Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: (void *) ? /* again */ Message-ID: <1990Jan21.215049.1572@virtech.uucp> Date: 21 Jan 90 21:50:49 GMT References: <6200009@ux1.cso.uiuc.edu> Organization: Virtual Technologies Inc. Lines: 20 In article <6200009@ux1.cso.uiuc.edu>, phil@ux1.cso.uiuc.edu writes: > void * malloc(); > > and you should be able to use it like: > > long * plong; > plong = malloc( sizeof(long) ); > > Is this considered a "legit" warning? Yes it is a legit warning. To turn off the warning you can do the following: plong = (long *) malloc( sizeof(long) ); -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+