[PATCH] kdrive: Fix build for opaque InputOption structure.

Jamey Sharp jamey at minilop.net
Mon Sep 26 22:38:44 PDT 2011


Commit 05284a03f9002b03a66ae355b34790ec02b726f0 missed fixing up
kdrive's use of the old non-opaque structure.

Signed-off-by: Jamey Sharp <jamey at minilop.net>
---
 hw/kdrive/src/kinfo.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/hw/kdrive/src/kinfo.c b/hw/kdrive/src/kinfo.c
index 7055fbf..0055b16 100644
--- a/hw/kdrive/src/kinfo.c
+++ b/hw/kdrive/src/kinfo.c
@@ -134,19 +134,9 @@ KdNewPointer (void)
 void
 KdFreePointer(KdPointerInfo *pi)
 {
-    InputOption *option, *prev = NULL;
-
     free(pi->name);
     free(pi->path);
-
-    for (option = pi->options; option; option = option->next) {
-        free(prev);
-        free(option->key);
-        free(option->value);
-        prev = option;
-    }
-
-    free(prev);
+    input_option_free_list(&pi->options);
     free(pi);
 }
 
-- 
1.7.5.4



More information about the xorg-devel mailing list