Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-22-2008, 05:49 AM   #1
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"));
error = sock_create(AF_INET,SOCK_STREAM,IPPROTO_TCP,&sock) ;
if (error<0)
return 0;
can anyone tell me where i went wrong?

thanks in advance


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

All times are GMT -5. The time now is 01:00 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