Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

Patch: remove unused variable

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


Holger.Teutsch at web

Aug 17, 2010, 10:24 AM

Post #1 of 2 (256 views)
Permalink
Patch: remove unused variable

Hello,
after

Change "Medium: stonith: Reduce stonith plugin invocations (bnc#630357)"

an unused variable may generate compiler warnings.

- holger

# HG changeset patch
# User Holger Teutsch <holger.teutsch [at] web>
# Date 1281868481 -7200
# Node ID e9527e585d743dfc097e3ffedb3a91afdd6b16d3
# Parent ba146a145a3ede967af48e8936ac414984aa1e5f
Remove unused variable tmp

diff -r ba146a145a3e -r e9527e585d74 lib/stonith/main.c
--- a/lib/stonith/main.c Thu Aug 12 16:46:02 2010 +0200
+++ b/lib/stonith/main.c Sun Aug 15 12:34:41 2010 +0200
@@ -283,7 +283,6 @@
int rc;
Stonith * s;
const char * SwitchType = NULL;
- const char * tmp;
const char * optfile = NULL;
const char * parameters = NULL;
int reset_type = ST_GENERIC_RESET;





WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 f&uuml;r
nur 19,99 ¿/mtl.!* http://web.de/DSL"]http://web.de/DSL-Doppel-Flatrate/


dejanmm at fastmail

Aug 18, 2010, 12:36 AM

Post #2 of 2 (239 views)
Permalink
Re: Patch: remove unused variable [In reply to]

Hi Holger,

Many thanks for spotting this.

Cheers,

Dejan

P.S. If you could also use just plain text in your mailer ... :)

On Tue, Aug 17, 2010 at 07:24:56PM +0200, Holger Teutsch wrote:
> <body bgcolor="#ffffff" background="https://img.web.de/v/p.gif" class="bgRepeatYes" style="background-repeat: repeat; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><div style="min-height: 200px; background-image: url(https://img.web.de/v/p.gif); background-repeat: repeat; background-color: #ffffff; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">Hello,<br />after<br /><br /></span></span></span></span></span>Change "Medium: stonith: Reduce stonith plugin invocations (bnc#630357)"<br /><br />an unused variable may generate compiler warnings.<br /><br />- holger<br /><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;"><br /></span></span></span></span></span># HG changeset patch<br /># User Holger Teutsch &lt;holger.teutsch [at] web&gt;<br /># Date 1281868481 -7200<br /># Node ID e9527e585d743dfc097e3ffedb3a91afdd6b16d3<br /># Parent&nbsp; ba146a145a3ede967af48e8936ac414984aa1e5f<br />Remove unused variable tmp<br /><br />diff -r ba146a145a3e -r e9527e585d74 lib/stonith/main.c<br />--- a/lib/stonith/main.c&nbsp;&nbsp; &nbsp;Thu Aug 12 16:46:02 2010 +0200<br />+++ b/lib/stonith/main.c&nbsp;&nbsp; &nbsp;Sun Aug 15 12:34:41 2010 +0200<br />@@ -283,7 +283,6 @@<br />&nbsp;&nbsp;&nbsp; &nbsp;int&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;rc;<br />&nbsp;&nbsp;&nbsp; &nbsp;Stonith *&nbsp;&nbsp; &nbsp;s;<br />&nbsp;&nbsp;&nbsp; &nbsp;const char *&nbsp;&nbsp; &nbsp;SwitchType = NULL;<br />-&nbsp;&nbsp; &nbsp;const char *&nbsp;&nbsp; &nbsp;tmp;<br />&nbsp;&nbsp;&nbsp; &nbsp;const char *&nbsp;&nbsp; &nbsp;optfile = NULL;<br />&nbsp;&nbsp;&nbsp; &nbsp;const char *&nbsp;&nbsp; &nbsp;parameters = NULL;<br />&nbsp;&nbsp;&nbsp; &nbsp;int&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;reset_type = ST_GENERIC_RESET;<br /><br /><br /><br /></div>&nbsp;&nbsp;<br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.web.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style="font-family:verdana; font-size:12px; line-height:17px;">WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 f&uuml;r &nbsp;&nbsp;&nbsp;<br>nur 19,99 ¿/mtl.!* <a href="http://web.de/DSL"><b>http://web.de/DSL</b></a>-Doppel-Flatrate/</td></tr></table>
> </body>

> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.