Re: [PATCH] Use C99 idioms in kill.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/18/2012 01:32 PM, Karel Zak wrote:
On Thu, Oct 18, 2012 at 03:52:30PM +0000, Ayan George wrote:
* Moved some declarations closer to where the vairable is used.

  No problem if the declaration is at the begin of any block, like

   if (x) {
       int y;
       ...
   }

  everything other is MESS.

     Karel



A mess?  Why bother declaring a variable within a block with c99?

It always seemed to make sense to declare a variable closest to where it is initialized and used.

Either way -- sorry if it is unacceptable.  I'll retreat to my hole. :^)

-ayan
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux