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