<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/bwmng/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/bwmng/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/bwmng/bugs/</id><updated>2015-07-26T16:35:55.784000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#5 compilation fails with Sun C</title><link href="https://sourceforge.net/p/bwmng/bugs/5/?limit=25#1c6a" rel="alternate"/><published>2015-07-26T16:35:55.784000Z</published><updated>2015-07-26T16:35:55.784000Z</updated><author><name>vgropp</name><uri>https://sourceforge.net/u/vgropp/</uri></author><id>https://sourceforge.netce2eabf17aeb7b9ce8049784c70cf574a05f8cce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0 (example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#6 usleep return value check</title><link href="https://sourceforge.net/p/bwmng/bugs/6/?limit=25#3acb" rel="alternate"/><published>2015-07-26T16:35:33.444000Z</published><updated>2015-07-26T16:35:33.444000Z</updated><author><name>vgropp</name><uri>https://sourceforge.net/u/vgropp/</uri></author><id>https://sourceforge.net18aa0cc4e01f3fb51b8d6bf45259d90b60e80066</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0 (example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#8 output the exactly the same name when starting with -Tsum and in "plain" output method</title><link href="https://sourceforge.net/p/bwmng/bugs/8/?limit=25#6f73" rel="alternate"/><published>2015-07-26T16:34:43.132000Z</published><updated>2015-07-26T16:34:43.132000Z</updated><author><name>vgropp</name><uri>https://sourceforge.net/u/vgropp/</uri></author><id>https://sourceforge.netd516805793064f60ddc9d6dac2c77874cd7ce1c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#7 bwm-ng-0.6 fails to build with -Wformat -Wformat-security</title><link href="https://sourceforge.net/p/bwmng/bugs/7/?limit=25#b0c5" rel="alternate"/><published>2015-07-26T16:34:16.426000Z</published><updated>2015-07-26T16:34:16.426000Z</updated><author><name>vgropp</name><uri>https://sourceforge.net/u/vgropp/</uri></author><id>https://sourceforge.neta0b7a86a2f8bcd3f55af9ac9c4d5aae17bf01bb8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;labels&lt;/strong&gt;:  --&amp;gt; 0.6.1&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>output the exactly the same name when starting with -Tsum and in "plain" output method</title><link href="https://sourceforge.net/p/bwmng/bugs/8/" rel="alternate"/><published>2014-01-14T06:09:03.189000Z</published><updated>2014-01-14T06:09:03.189000Z</updated><author><name>roukili</name><uri>https://sourceforge.net/u/roukili/</uri></author><id>https://sourceforge.neta21379e7a1e7c58450ee67fe0739cdc2b53e0acc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;void print_values(int y,int x,char &lt;em&gt;if_name,t_iface_speed_stats stats,float multiplier,t_iface_stats full_stats) {&lt;br /&gt;
...&lt;br /&gt;
case PLAIN_OUT:&lt;br /&gt;
            if (output_method==PLAIN_OUT &amp;amp;&amp;amp; ansi_output) printf("\033[%d;2H",y);&lt;br /&gt;
            printf("%15s:",if_name); /&lt;/em&gt; output the name */&lt;br /&gt;
            printf("%s %s %s\n",&lt;br /&gt;
                values2str(0,stats,full_stats,multiplier,buffer,49),&lt;br /&gt;
                values2str(1,stats,full_stats,multiplier,buffer,49),&lt;br /&gt;
                values2str(2,stats,full_stats,multiplier,buffer,49));&lt;/p&gt;
&lt;p&gt;The last "printf" will output 3 data using the same "buffer". Because all 3 data are converted to string and saved in "buffer" one by one, the last data string will overwrite the former ones, and as a result in the final output line there will be 3 numbers which are exactly the same.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>output the exactly the same name when starting with -Tsum and in "plain" output method</title><link href="https://sourceforge.net/p/bwmng/bugs/8/" rel="alternate"/><published>2014-01-14T06:09:03.189000Z</published><updated>2014-01-14T06:09:03.189000Z</updated><author><name>roukili</name><uri>https://sourceforge.net/u/roukili/</uri></author><id>https://sourceforge.netbd6c36942770e8f193bd04be6d7fc8e330f26df5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 8 has been modified: output the exactly the same name when starting with -Tsum and in "plain" output method&lt;br /&gt;
Edited By: vgropp (vgropp)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'closed-fixed'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#7 bwm-ng-0.6 fails to build with -Wformat -Wformat-security</title><link href="https://sourceforge.net/p/bwmng/bugs/7/?limit=25#3fcb" rel="alternate"/><published>2013-12-03T09:20:31.391000Z</published><updated>2013-12-03T09:20:31.391000Z</updated><author><name>Natanael Copa</name><uri>https://sourceforge.net/u/ncopa/</uri></author><id>https://sourceforge.net13c7994cdead5d113798ec62f8663d289eebb008</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Attached patch fixes it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>bwm-ng-0.6 fails to build with -Wformat -Wformat-security</title><link href="https://sourceforge.net/p/bwmng/bugs/7/" rel="alternate"/><published>2013-12-03T09:15:14.831000Z</published><updated>2013-12-03T09:15:14.831000Z</updated><author><name>Natanael Copa</name><uri>https://sourceforge.net/u/ncopa/</uri></author><id>https://sourceforge.netc2b6344812371a70cea7185094de352101b09c1f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When compiling with -Wformat -Wformat-security (to catch potensial security issues) I get the following error(s):&lt;/p&gt;
&lt;pre&gt;output.c: In function 'print_header':
output.c:226:13: error: format not a string literal and no format arguments [-Werror=format-security]
             fprintf(tmp_out_file,input2str());
             ^
output.c:227:13: error: format not a string literal and no format arguments [-Werror=format-security]
             fprintf(tmp_out_file,show_all_if2str());
             ^
output.c:237:13: error: format not a string literal and no format arguments [-Werror=format-security]
             printf(input2str());
             ^
output.c: At top level:
cc1: warning: unrecognized command line option "-Wno-long-double" [enabled by default]
cc1: some warnings being treated as errors
Makefile:241: recipe for target 'output.o' failed
make[2]: *** [output.o] Error 1&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>bwm-ng-0.6 fails to build with -Wformat -Wformat-security</title><link href="https://sourceforge.net/p/bwmng/bugs/7/" rel="alternate"/><published>2013-12-03T09:15:14.831000Z</published><updated>2013-12-03T09:15:14.831000Z</updated><author><name>Natanael Copa</name><uri>https://sourceforge.net/u/ncopa/</uri></author><id>https://sourceforge.netcca691ab8e05b9697b57657f92a3a072b41cf2e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 7 has been modified: bwm-ng-0.6 fails to build with -Wformat -Wformat-security&lt;br /&gt;
Edited By: vgropp (vgropp)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'closed-fixed'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>usleep return value check</title><link href="https://sourceforge.net/p/bwmng/bugs/6/" rel="alternate"/><published>2010-04-21T14:39:08Z</published><updated>2010-04-21T14:39:08Z</updated><author><name>Alexey Zakharov</name><uri>https://sourceforge.net/u/a-zakharov/</uri></author><id>https://sourceforge.net6842abb74fd5b518d73f18575ffa591292369aea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;OS: linux mandriva 2009.0&lt;br /&gt;
Project version: bwm-ng-0.6&lt;br /&gt;
bwm-ng.c:216 if (EINVAL==usleep(delay*1000)) &lt;br /&gt;
/* there seems to be systems where 1million usecs is max */&lt;br /&gt;
usleep(999999);&lt;/p&gt;
&lt;p&gt;According to man usleep() possible return values are 0 on success and  -1 on error.  If the error occures errno is set to EINVAL or EINTR. Linux man seems a bit ambiguity on the case but posix and freebsd man pages states explicitely: "If any of the following conditions occur, the usleep() function shall return -1 and set errno to the corresponding value."&lt;/p&gt;
&lt;p&gt;Solution:&lt;br /&gt;
if (usleep(delay*1000) != 0) &lt;br /&gt;
{&lt;br /&gt;
if (errno == EINVAL)&lt;br /&gt;
{&lt;br /&gt;
errno = 0;&lt;br /&gt;
/* there seems to be systems where 1million usecs is max */&lt;br /&gt;
usleep(999999);&lt;br /&gt;
}&lt;br /&gt;
else &lt;br /&gt;
{&lt;br /&gt;
exit(-1);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>