ソースを参照

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>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Stephen Hemminger 11 年 前
コミット
30b02c4b2a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      lib/assoc_array.c

+ 1 - 1
lib/assoc_array.c

@@ -157,7 +157,7 @@ enum assoc_array_walk_status {
 	assoc_array_walk_tree_empty,
 	assoc_array_walk_tree_empty,
 	assoc_array_walk_found_terminal_node,
 	assoc_array_walk_found_terminal_node,
 	assoc_array_walk_found_wrong_shortcut,
 	assoc_array_walk_found_wrong_shortcut,
-} status;
+};
 
 
 struct assoc_array_walk_result {
 struct assoc_array_walk_result {
 	struct {
 	struct {