diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-05-31 01:22:05 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-05-31 01:22:05 -0800 |
| commit | 6b7df7c3c20e810f110a66cf3fc7a24f693651a1 (patch) | |
| tree | 3dc2243895de1c5283c5428cea0c7dc65c193e89 | |
| parent | b019df2f1ce300b951e9433ae378a016135a490d (diff) | |
| download | tinytac-6b7df7c3c20e810f110a66cf3fc7a24f693651a1.tar.gz tinytac-6b7df7c3c20e810f110a66cf3fc7a24f693651a1.tar.bz2 tinytac-6b7df7c3c20e810f110a66cf3fc7a24f693651a1.tar.xz tinytac-6b7df7c3c20e810f110a66cf3fc7a24f693651a1.zip | |
libtinytac: adding TTAC_OPT_NOINIT
| -rw-r--r-- | include/tinytac.h | 1 | ||||
| -rw-r--r-- | lib/libtinytac/lmemory.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/tinytac.h b/include/tinytac.h index 594ac89..930da29 100644 --- a/include/tinytac.h +++ b/include/tinytac.h | |||
| @@ -134,6 +134,7 @@ | |||
| 134 | #define TTAC_OPT_DEBUG_LEVEL 1 | 134 | #define TTAC_OPT_DEBUG_LEVEL 1 |
| 135 | #define TTAC_OPT_DEBUG_IDENT 2 | 135 | #define TTAC_OPT_DEBUG_IDENT 2 |
| 136 | #define TTAC_OPT_DEBUG_SYSLOG 3 | 136 | #define TTAC_OPT_DEBUG_SYSLOG 3 |
| 137 | #define TTAC_OPT_NOINIT 5 | ||
| 137 | #define TTAC_OPT_HOSTS 10 | 138 | #define TTAC_OPT_HOSTS 10 |
| 138 | #define TTAC_OPT_KEY 11 | 139 | #define TTAC_OPT_KEY 11 |
| 139 | #define TTAC_OPT_KEYS 12 | 140 | #define TTAC_OPT_KEYS 12 |
diff --git a/lib/libtinytac/lmemory.c b/lib/libtinytac/lmemory.c index 3f7d8bc..b12a00c 100644 --- a/lib/libtinytac/lmemory.c +++ b/lib/libtinytac/lmemory.c | |||
| @@ -372,6 +372,11 @@ tinytac_set_option( | |||
| 372 | TinyTacDebug(TTAC_DEBUG_ARGS, " == %s( %s, TTAC_OPT_KEYS, invalue )", __func__, (((tt)) ? "tt" : "NULL") ); | 372 | TinyTacDebug(TTAC_DEBUG_ARGS, " == %s( %s, TTAC_OPT_KEYS, invalue )", __func__, (((tt)) ? "tt" : "NULL") ); |
| 373 | return(tinytac_set_option_keys(tt, NULL, invalue)); | 373 | return(tinytac_set_option_keys(tt, NULL, invalue)); |
| 374 | 374 | ||
| 375 | case TTAC_OPT_NOINIT: | ||
| 376 | TinyTacDebug( TTAC_DEBUG_ARGS, " == %s( %s, TTAC_OPT_NOINIT, invalue )", __func__, (((tt)) ? "tt" : "NULL") ); | ||
| 377 | ival = ((invalue)) ? *((const int *)invalue) : TTAC_YES; | ||
| 378 | return(tinytac_set_option_flag(tt, TTAC_NOINIT, &ival)); | ||
| 379 | |||
| 375 | default: | 380 | default: |
| 376 | break; | 381 | break; |
| 377 | }; | 382 | }; |
