LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-08-2005, 06:52 PM   #1
grupoapunte
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, 07:52 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,507

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

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks for that man, you fixed it.
 
  


Reply


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 03:07 AM
Also eliminate partition table? jeopardyracing Linux - Newbie 4 02-21-2005 06:21 AM
How to eliminate the spyware ? emailssent General 32 11-01-2004 09:49 PM
ignoring the "non-portable whitespace encountered at line " warning Jake13 Linux - Software 3 08-18-2004 12:34 PM
WARNING: Bad format on line 10 of /etc/fstab thetwin Linux - Newbie 22 03-05-2003 12:55 AM


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

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