develop&-nr current as of 22.7.19 & OAI fully ready for testing

This commit is contained in:
yilmazt
2019-07-22 21:56:44 +02:00
44 changed files with 549 additions and 384 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ typedef struct paramdef {
char *helpstr; /* help string */
unsigned int paramflags; /* value is a "ored" combination of above PARAMFLAG_XXXX values */
union { /* pointer to the parameter value, completed by the config module */
char **strptr;
char **strlistptr;
char **strptr;
char **strlistptr;
uint8_t *u8ptr;
int8_t *i8ptr;
uint16_t *u16ptr;
+5 -5
View File
@@ -184,7 +184,7 @@ void config_printhelp(paramdef_t *params,int numparams, char *prefix) {
printf("--------------------------------------------------------------------\n\n");
}
int config_execcheck(paramdef_t *params,int numparams, char *prefix) {
int config_execcheck(paramdef_t *params, int numparams, char *prefix) {
int st=0;
for (int i=0 ; i<numparams ; i++) {
@@ -204,7 +204,7 @@ int config_execcheck(paramdef_t *params,int numparams, char *prefix) {
return st;
}
int config_get(paramdef_t *params,int numparams, char *prefix) {
int config_get(paramdef_t *params, int numparams, char *prefix) {
int ret= -1;
if (CONFIG_ISFLAGSET(CONFIG_ABORT)) {
@@ -215,11 +215,11 @@ int config_get(paramdef_t *params,int numparams, char *prefix) {
configmodule_interface_t *cfgif = config_get_if();
if (cfgif != NULL) {
ret = config_get_if()->get(params, numparams,prefix);
ret = config_get_if()->get(params, numparams, prefix);
if (ret >= 0) {
config_process_cmdline(params,numparams,prefix);
config_execcheck(params,numparams,prefix);
config_process_cmdline(params, numparams, prefix);
config_execcheck(params, numparams, prefix);
}
return ret;