Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-08-2005, 07:52 PM   #1
LQ Newbie
Registered: Apr 2005
Posts: 26

Rep: Reputation: 15
Question 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.
Old 05-08-2005, 08:52 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,716

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I guess you are missing
#include <arpa/inet.h>
in your source code.
Old 05-08-2005, 09:33 PM   #3
LQ Newbie
Registered: Apr 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks for that man, you fixed it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Netstat issues 'warning, got duplicate tcp line' English_Man Linux - Networking 5 04-13-2009 04:07 AM
Also eliminate partition table? jeopardyracing Linux - Newbie 4 02-21-2005 07:21 AM
How to eliminate the spyware ? emailssent General 32 11-01-2004 10:49 PM
ignoring the "non-portable whitespace encountered at line " warning Jake13 Linux - Software 3 08-18-2004 01:34 PM
WARNING: Bad format on line 10 of /etc/fstab thetwin Linux - Newbie 22 03-05-2003 01:55 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration