lkml.org 
[lkml]   [2013]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] assoc_array: remove global variable
The associative array code creates unnecessary and potentially problematic
global variable 'status'. Remove it since never used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

--- a/lib/assoc_array.c 2013-12-20 07:59:47.468147094 -0800
+++ b/lib/assoc_array.c 2013-12-30 15:14:38.034880698 -0800
@@ -157,7 +157,7 @@ enum assoc_array_walk_status {
assoc_array_walk_tree_empty,
assoc_array_walk_found_terminal_node,
assoc_array_walk_found_wrong_shortcut,
-} status;
+};

struct assoc_array_walk_result {
struct {

\
 
 \ /
  Last update: 2013-12-31 00:41    [W:0.027 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site