LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   i have a warning that i want to eliminate in the folowing line: ... (http://www.linuxquestions.org/questions/programming-9/i-have-a-warning-that-i-want-to-eliminate-in-the-folowing-line-321432/)

grupoapunte 05-08-2005 06:52 PM

i have a warning that i want to eliminate in the folowing line: ...
 
I have a warning in my program in this line:
struct in_addr eIp;
.........
eIp.s_addr = ePong->ulIp;
strcpy(pNuevo->cIp, inet_ntoa(eIp)); <<<<<========

it says: 1794: warning: passing arg 2 of `strcpy' makes pointer frominteger without a cast

The program is running right but i realy want to understand that warning and fix it, i have tryed many ways but this is the only way the program runs okey.

Thanks to all, Dam.

jlliagre 05-08-2005 07:52 PM

I guess you are missing
Code:

#include <arpa/inet.h>
in your source code.

grupoapunte 05-08-2005 08:33 PM

Thanks for that man, you fixed it.


All times are GMT -5. The time now is 08:24 AM.