projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some .h files should be accessible to user programmed modules and thus
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
option.c
diff --git
a/ltt/branches/poly/lttv/option.c
b/ltt/branches/poly/lttv/option.c
index 0ab381f775d39ca27fa25c035afd0d26afbd3daa..eb62e6c354da31c13b9b5e5691139a9c545eb322 100644
(file)
--- a/
ltt/branches/poly/lttv/option.c
+++ b/
ltt/branches/poly/lttv/option.c
@@
-64,14
+64,15
@@
void lttv_option_init(int argc, char **argv) {
void lttv_option_destroy() {
struct poptOption *poption;
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);
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) ;
}
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,
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;
const lttv_option_hook h, void *hook_data)
{
struct poptOption poption;
This page took
0.022839 seconds
and
4
git commands to generate.