This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

help needed


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]