LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 01-22-2008, 06:49 AM   #1
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
Thumbs up implicit declaration of function ‘in_aton in kernel module


hai all
i have written a kernel module.code is working fine.i am getting 2 warnings
they are

/home/indu/pgs/kernpr/client/cc.c: In function ‘sockfn’:
/home/indu/pgs/kernpr/client/cc.c:31: warning: ‘return’ with a value, in function returning void
/home/indu/pgs/kernpr/client/cc.c:37: warning: implicit declaration of function ‘in_aton’
Building modules, stage 2


these are the lines
1. sin.sin_family = AF_INET;
sin.sin_addr.s_addr = (in_aton("ipaddress"));
2.
error = sock_create(AF_INET,SOCK_STREAM,IPPROTO_TCP,&sock) ;
if (error<0)
{
printk("Error\n");
return 0;
}
can anyone tell me where i went wrong?


thanks in advance
 
  


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
warning: implicit declaration of function liguorir Linux - Software 5 10-22-2012 04:20 PM
warning: implicit declaration of function `snprintf' BiThian Programming 13 10-06-2011 05:26 PM
Compiling 2.6.23: implicit declaration of function ‘scsi_device_cancel’ fof3 Debian 4 12-10-2007 03:16 PM
error:implicit declaration of function ‘get_filesystem_list’ swift_a2002 Programming 1 05-15-2007 04:27 AM
implicit declaration of function 'getdelim' MicahCarrick Programming 2 05-02-2005 12:03 PM


All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
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