summaryrefslogtreecommitdiff
path: root/extlibs
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-10-01 15:54:08 +0100
committerFreeArtMan <dos21h@gmail.com>2017-10-01 15:54:08 +0100
commitf0128b5e83f460d4678343af85a9a95ea285c5a9 (patch)
tree0450eeb9ebb687aa037d475a4b48c41f7f1ff59d /extlibs
parentcd09b06adb30135f55909c02840c339422217d95 (diff)
downloadagni-f0128b5e83f460d4678343af85a9a95ea285c5a9.tar.gz
agni-f0128b5e83f460d4678343af85a9a95ea285c5a9.zip
Update libarg
Diffstat (limited to 'extlibs')
-rw-r--r--extlibs/arg.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/extlibs/arg.c b/extlibs/arg.c
index 2a35b60..5b3163e 100644
--- a/extlibs/arg.c
+++ b/extlibs/arg.c
@@ -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;