Re: [LIP] Query regarding timeval and gcc error message.

Binand Sethumadhavan <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Sun, Feb 22, 2004 at 08:46:05AM -0800, Shehjar Tikoo wrote:
> 1.
> Heres the code:
> -----------------CODE--------------
> struct sockaddr_un uds_channel;
> if((tmpfd=accept(listenfd, (struct sockaddr
> *)uds_channel, &len)<0)) {

That's not correct. It should read:

accept (listenfd, (struct sockaddr *) &uds_channel, &len)

> 2.
> delay_loop.c: In function `dl_run':
> delay_loop.c:316: error: `timeval' undeclared (first
> use in this function)

Please post the code snippet.

Binand

-- 
[[email protected] root]# uptime
11:55am  up 58 days,  4:49,  2 users,  load average: 1023.78, 419.92, 158.90


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.