[BusyBox 0001168]: networking/ping.c:220: warning: operation on 'ntransmitted' may be undefined

bugs at busybox.net bugs at busybox.net
Tue Jan 30 15:53:02 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1168 
====================================================================== 
Reported By:                gzp
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1168
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             01-22-2007 02:03 PST
Last Modified:              01-30-2007 07:53 PST
====================================================================== 
Summary:                    networking/ping.c:220: warning: operation on
'ntransmitted' may be undefined
Description: 
CC      networking/ping.o
cc1: warnings being treated as errors
networking/ping.c: In function 'sendping':
networking/ping.c:220: warning: operation on 'ntransmitted' may be
undefined
make[1]: *** [networking/ping.o] Error 1
make: *** [networking] Error 2
====================================================================== 

---------------------------------------------------------------------- 
 vda - 01-22-07 15:25  
---------------------------------------------------------------------- 
?! 1.4.0, line 220:

    219         signal(SIGALRM, sendping);
    220         if (pingcount == 0 || ntransmitted < pingcount) {
    221                 alarm(PINGINTERVAL);
    222         } else {

We compare two unsigned longs. It's 100% ok.
In which version do you see th warning? Or show code snippet around line
220. 

---------------------------------------------------------------------- 
 gzp - 01-23-07 00:17  
---------------------------------------------------------------------- 
This is 1.3.2, here is the complete tarball in precompiled stage:
http://gzp.hu/tmp/busybox-1.3.2/
http://gzp.hu/tmp/busybox-1.3.2/log.make 

---------------------------------------------------------------------- 
 vicser - 01-30-07 07:53  
---------------------------------------------------------------------- 
bbox-1.3.2-ping.c.patch

solves the issue 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-22-07 02:03  gzp            New Issue                                    
01-22-07 02:03  gzp            Status                   new => assigned     
01-22-07 02:03  gzp            Assigned To               => BusyBox         
01-22-07 15:25  vda            Note Added: 0002033                          
01-23-07 00:17  gzp            Note Added: 0002035                          
01-30-07 07:52  vicser         File Added: bbox-1.3.2-ping.c.patch              
     
01-30-07 07:53  vicser         Note Added: 0002073                          
======================================================================




More information about the busybox-cvs mailing list