diff options
Diffstat (limited to 'arg.c')
-rw-r--r-- | arg.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -23,7 +23,6 @@ arg_t* arg_load( int argc, char **argv, def_arg *argl ) //elements at the end int i=0; int pos = -1; //position of argv inside def_arg table - void *arg_def_val = NULL; //prepare return value ret = malloc( sizeof(arg_t) ); @@ -95,7 +94,6 @@ arg_t* arg_load( int argc, char **argv, def_arg *argl ) case ARGT_LIST: { int j=0; - int num=0; char **parse_params = NULL; int param_num = 0; s_arg_list *declared_params = argl[pos].def; @@ -107,7 +105,7 @@ arg_t* arg_load( int argc, char **argv, def_arg *argl ) if (argl[pos].used == 1) { - printf("Allready used %d\n", argv[i]); + printf("Allready used %s\n", argv[i]); break; } @@ -392,7 +390,7 @@ argv_t* arg_get( arg_t *arg, int num ) } -arg_ip* arg_c_ip( uint32_t ip, uint16_t port ) +arg_ip* arg_c_ip( uint32_t ip, uint16_t port ) { arg_ip *ret = NULL; @@ -434,7 +432,7 @@ arg_float* arg_c_float( float val ) } -arg_list* arg_c_list( uint32_t num, char **vals) +arg_list* arg_c_list( uint32_t num, char **vals) { int i; arg_list *ret = NULL; @@ -456,7 +454,7 @@ arg_list* arg_c_list( uint32_t num, char **vals) } -arg_file* arg_c_file( char *name ) +arg_file* arg_c_file( char *name ) { arg_file *ret = NULL; @@ -469,7 +467,7 @@ arg_file* arg_c_file( char *name ) } -arg_val* arg_c_val( char *ptr ) +arg_val* arg_c_val( char *ptr ) { arg_val *ret = NULL; @@ -482,7 +480,7 @@ arg_val* arg_c_val( char *ptr ) } -arg_flag* arg_c_flag() +arg_flag* arg_c_flag() { arg_flag *ret = NULL; |