summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-10-01 15:53:20 +0100
committerFreeArtMan <dos21h@gmail.com>2017-10-01 15:53:20 +0100
commit635cad0a0d23c5926339644f7725d08c1157b3cb (patch)
tree4ef1df72021d953241d3d20209d1c81d77bc7078
parentf48e9e274757608a5b52ad2679af2edbeb8f828b (diff)
downloadlibarg-635cad0a0d23c5926339644f7725d08c1157b3cb.tar.gz
libarg-635cad0a0d23c5926339644f7725d08c1157b3cb.zip
Fixed warningsHEADmaster
-rw-r--r--arg.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/arg.c b/arg.c
index 2a35b60..5b3163e 100644
--- a/arg.c
+++ b/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;