scripts: improve checkstack
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 22 Feb 2010 23:17:09 +0000 (15:17 -0800)
committerMichal Marek <mmarek@suse.cz>
Sun, 7 Mar 2010 20:19:09 +0000 (21:19 +0100)
commit1f2a144f5ab5e836b5ca8f67bd76b759fa947751
treed7fdc51eed976f4fa005e6ebcf83538b8436900a
parentb59a12258460b3d019918719b1bd2563cf37ad9a
scripts: improve checkstack

Cleanup checkstack script:
  * Turn on strict checking
  * Fix resulting error message because the declaration syntax
    was incorrect.
  * Remove incorrect and misleading use of prototype
     - prototype not required for this type of sort function
       because $a and $b are being used in this contex
     - if prototype was being used it should be for both arguments
  * Use closure for sort function

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Cong Wang <amwang@redhat.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/checkstack.pl