This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
help needed
- To: gcc-help at gcc dot gnu dot org
- Subject: help needed
- From: ram <gangadhar at applabs dot net>
- Date: Sat, 13 Oct 2001 13:12:42 +0530
hi
I have a C progam written for DEC UNIX. I am unable to compile this on
Redhat linux with gcc version gcc-2.96-81 .
I get following errors
itfrecv.c: In function `ack_funct':
itfrecv.c:389: too few arguments to function `send'
itfrecv.c: In function `errlog':
itfrecv.c:422: warning: passing arg 3 of `write' makes integer from pointer
without a cast
the lines are as below
389 send(sockfd, buffer, strlen(buffer));
422 write(fd, buffer, index);
what should I change to make the program compile with gcc.
Your help will be highly appreciated.
thanx
Ram