diff options
Diffstat (limited to 'lib/libtinytac/lmemory.c')
| -rw-r--r-- | lib/libtinytac/lmemory.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libtinytac/lmemory.c b/lib/libtinytac/lmemory.c index ca1332b..ccbb3ec 100644 --- a/lib/libtinytac/lmemory.c +++ b/lib/libtinytac/lmemory.c | |||
| @@ -54,6 +54,8 @@ | |||
| 54 | #include <errno.h> | 54 | #include <errno.h> |
| 55 | #include <assert.h> | 55 | #include <assert.h> |
| 56 | 56 | ||
| 57 | #include "lconf.h" | ||
| 58 | |||
| 57 | 59 | ||
| 58 | /////////////////// | 60 | /////////////////// |
| 59 | // // | 61 | // // |
| @@ -194,6 +196,7 @@ tinytac_get_option( | |||
| 194 | int option, | 196 | int option, |
| 195 | void * outvalue ) | 197 | void * outvalue ) |
| 196 | { | 198 | { |
| 199 | int rc; | ||
| 197 | const char * str; | 200 | const char * str; |
| 198 | unsigned * optsp; | 201 | unsigned * optsp; |
| 199 | 202 | ||
| @@ -201,6 +204,9 @@ tinytac_get_option( | |||
| 201 | 204 | ||
| 202 | assert(outvalue != NULL); | 205 | assert(outvalue != NULL); |
| 203 | 206 | ||
| 207 | if ((rc = tinytac_conf(0)) != TTAC_SUCCESS) | ||
| 208 | return(rc); | ||
| 209 | |||
| 204 | // get global options | 210 | // get global options |
| 205 | switch(option) | 211 | switch(option) |
| 206 | { | 212 | { |
| @@ -301,6 +307,9 @@ tinytac_initialize( | |||
| 301 | 307 | ||
| 302 | assert(ttp != NULL); | 308 | assert(ttp != NULL); |
| 303 | 309 | ||
| 310 | if ((rc = tinytac_conf(0)) != TTAC_SUCCESS) | ||
| 311 | return(rc); | ||
| 312 | |||
| 304 | if ((tt = tinytac_obj_alloc(sizeof(TinyTac), (void(*)(void*))&tinytac_tinytac_free)) == NULL) | 313 | if ((tt = tinytac_obj_alloc(sizeof(TinyTac), (void(*)(void*))&tinytac_tinytac_free)) == NULL) |
| 305 | return(TTAC_ENOMEM); | 314 | return(TTAC_ENOMEM); |
| 306 | 315 | ||
| @@ -334,6 +343,7 @@ tinytac_set_option( | |||
| 334 | int option, | 343 | int option, |
| 335 | const void * invalue ) | 344 | const void * invalue ) |
| 336 | { | 345 | { |
| 346 | int rc; | ||
| 337 | int ival; | 347 | int ival; |
| 338 | int idflt; | 348 | int idflt; |
| 339 | const char * istr; | 349 | const char * istr; |
| @@ -343,6 +353,9 @@ tinytac_set_option( | |||
| 343 | 353 | ||
| 344 | assert(invalue != NULL); | 354 | assert(invalue != NULL); |
| 345 | 355 | ||
| 356 | if ((rc = tinytac_conf(0)) != TTAC_SUCCESS) | ||
| 357 | return(rc); | ||
| 358 | |||
| 346 | switch(option) | 359 | switch(option) |
| 347 | { | 360 | { |
| 348 | case TTAC_OPT_AUTHEN_ASCII: | 361 | case TTAC_OPT_AUTHEN_ASCII: |
