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

bugs at busybox.net bugs at busybox.net
Thu Feb 1 23:11:35 UTC 2007


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             01-22-2007 02:03 PST
Last Modified:              02-01-2007 15:11 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 

---------------------------------------------------------------------- 
 vda - 02-01-07 15:11  
---------------------------------------------------------------------- 
already fixed in svn. applying to busybox_1_3_stable 

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                          
02-01-07 15:11  vda            Status                   assigned => closed  
02-01-07 15:11  vda            Note Added: 0002083                          
======================================================================




More information about the busybox-cvs mailing list