• Stephen Hemminger's avatar
    scripts: improve checkstack · 1f2a144f
    Stephen Hemminger authored
    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: default avatarStephen 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
    1f2a144f
checkstack.pl 5.17 KB