fixes
[lttv.git] / ltt / branches / poly / lttv / option.c
index 0ab381f775d39ca27fa25c035afd0d26afbd3daa..eb62e6c354da31c13b9b5e5691139a9c545eb322 100644 (file)
@@ -64,14 +64,15 @@ void lttv_option_init(int argc, char **argv) {
 void lttv_option_destroy() {
 
   struct poptOption *poption;
+
+  int i;
   
-  for(i=0; i<lttv_options_command_popt->len,i++) {
+  for(i=0; i < lttv_options_command_popt->len ; i++) {
     poption = &g_array_index (lttv_options_command_popt, struct poptOption, i);
 
-    g_free(poption.longName);
-    g_free(poption.shortName);
-    g_free(poption.descrip);
-    g_free(poption.argDescrip);
+    g_free((gpointer)poption->longName);
+    g_free((gpointer)poption->descrip);
+    g_free((gpointer)poption->argDescrip);
   }
   g_array_free(lttv_options_command_popt,TRUE) ;
   g_array_free(lttv_options_command,TRUE) ;
@@ -95,7 +96,7 @@ static int poptToLTT[] = {
 
 void lttv_option_add(const char *long_name, const char char_name,
                const char *description, const char *argDescription,
-               const lttv_option_type t, const void *p, 
+               const lttv_option_type t, void *p, 
                const lttv_option_hook h, void *hook_data)
 {
   struct poptOption poption;
This page took 0.023585 seconds and 4 git commands to generate.