]> pilppa.com Git - libplpha.git/commitdiff
version 0.1.0
authorMika Laitio <lamikr@pilppa.org>
Thu, 28 Oct 2010 21:35:58 +0000 (00:35 +0300)
committerMika Laitio <lamikr@pilppa.org>
Thu, 28 Oct 2010 21:35:58 +0000 (00:35 +0300)
configure.ac
src/process_parser.c

index 6ea030e019e4a05973fb097bdb47213f6ddbd10d..ef0e6268a94d0cae045aec05d26c698a4c83cd95 100644 (file)
@@ -3,7 +3,7 @@ AM_CONFIG_HEADER(config.h)
 AC_CONFIG_MACRO_DIR([m4])
 
 PACKAGE=libplpha
-VERSION=1.0.0
+VERSION=0.1.0
 
 CFLAGS="$CFLAGS -g -Wall -Werror"
 LDFLAGS="$LDFLAGS -lpthread"
index dcc4af82e6209fd0e5897270038c0229773d08cc..e4e453947b5e6f016cdedc8645b87b41dfda4b64 100644 (file)
@@ -36,8 +36,8 @@ t_process_arg_list *parse_command_line_args(char *cmd_line_param) {
                                else {
                                        char    **arg_arr;
 
-                                       arg_arr = ret_val->arg_arr;
-                                       arg_arr = realloc(arg_arr, (ret_val->count + 1) * sizeof(char *));
+                                       arg_arr                         = ret_val->arg_arr;
+                                       arg_arr                         = realloc(arg_arr, (ret_val->count + 1) * sizeof(char *));
                                        ret_val->arg_arr        = arg_arr;
                                }
                                start           = line_pointer;
@@ -49,16 +49,16 @@ t_process_arg_list *parse_command_line_args(char *cmd_line_param) {
                                }
                                ret_val->arg_arr[ret_val->count]        = strndup(start, len);
                                log_debug("ret_val[%d] = %s\n", ret_val->count, ret_val->arg_arr[ret_val->count]);
-                               ret_val->count                          = ret_val->count + 1;
+                               ret_val->count                                          = ret_val->count + 1;
                        }
                        else {
                                break;
                        }
                }
                // terminate list with null
-               ret_val->arg_arr                        = realloc(ret_val->arg_arr, (ret_val->count + 1) * sizeof(char *));
+               ret_val->arg_arr                                        = realloc(ret_val->arg_arr, (ret_val->count + 1) * sizeof(char *));
                ret_val->arg_arr[ret_val->count]        = NULL;
-               ret_val->count                          = ret_val->count + 1;
+               ret_val->count                                          = ret_val->count + 1;
        }
        return ret_val;
 }