diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-05-31 09:15:29 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-05-31 09:15:29 -0800 |
| commit | 1731bd8655b81e4f588ce4adef1f9f2c165b1fc6 (patch) | |
| tree | 9e85b2aad83ba6e5b4c94228d1b36374d70928d5 | |
| parent | e43988b29b3e7fa370ee084e51bf854ce59dba1c (diff) | |
| download | tinytac-1731bd8655b81e4f588ce4adef1f9f2c165b1fc6.tar.gz tinytac-1731bd8655b81e4f588ce4adef1f9f2c165b1fc6.tar.bz2 tinytac-1731bd8655b81e4f588ce4adef1f9f2c165b1fc6.tar.xz tinytac-1731bd8655b81e4f588ce4adef1f9f2c165b1fc6.zip | |
libtinytac: replacing tinytac_dflt_opts_neg with tinytac_dflt
| -rw-r--r-- | lib/libtinytac/lmemory.c | 3 | ||||
| -rw-r--r-- | lib/libtinytac/lmemory.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/libtinytac/lmemory.c b/lib/libtinytac/lmemory.c index ddf6693..28a05c3 100644 --- a/lib/libtinytac/lmemory.c +++ b/lib/libtinytac/lmemory.c | |||
| @@ -136,7 +136,6 @@ TinyTac tinytac_dflt = | |||
| 136 | 136 | ||
| 137 | const char * tinytac_dflt_hosts = TTAC_DFLT_HOSTS; | 137 | const char * tinytac_dflt_hosts = TTAC_DFLT_HOSTS; |
| 138 | char * tinytac_dflt_hosts_buff = NULL; | 138 | char * tinytac_dflt_hosts_buff = NULL; |
| 139 | unsigned tinytac_dflt_opts_neg = TTAC_DFLT_OPTS_NEG; | ||
| 140 | char ** tinytac_dflt_keys = NULL; | 139 | char ** tinytac_dflt_keys = NULL; |
| 141 | 140 | ||
| 142 | 141 | ||
| @@ -421,7 +420,7 @@ tinytac_set_option_flag( | |||
| 421 | dflt = ((tt)) ? (tinytac_dflt.opts & flag) : (flag & TTAC_DFLT_OPTS); | 420 | dflt = ((tt)) ? (tinytac_dflt.opts & flag) : (flag & TTAC_DFLT_OPTS); |
| 422 | ival = ((invalue)) ? *invalue : dflt; | 421 | ival = ((invalue)) ? *invalue : dflt; |
| 423 | optsp = ((tt)) ? &tt->opts : &tinytac_dflt.opts; | 422 | optsp = ((tt)) ? &tt->opts : &tinytac_dflt.opts; |
| 424 | opts_negp = ((tt)) ? &tt->opts_neg : &tinytac_dflt_opts_neg; | 423 | opts_negp = ((tt)) ? &tt->opts_neg : &tinytac_dflt.opts_neg; |
| 425 | 424 | ||
| 426 | if ((ival)) | 425 | if ((ival)) |
| 427 | { | 426 | { |
diff --git a/lib/libtinytac/lmemory.h b/lib/libtinytac/lmemory.h index 837cc2b..156ae46 100644 --- a/lib/libtinytac/lmemory.h +++ b/lib/libtinytac/lmemory.h | |||
| @@ -65,7 +65,6 @@ | |||
| 65 | extern TinyTac tinytac_dflt; | 65 | extern TinyTac tinytac_dflt; |
| 66 | extern const char * tinytac_dflt_hosts; | 66 | extern const char * tinytac_dflt_hosts; |
| 67 | extern char * tinytac_dflt_hosts_buff; | 67 | extern char * tinytac_dflt_hosts_buff; |
| 68 | extern unsigned tinytac_dflt_opts_neg; | ||
| 69 | extern char ** tinytac_dflt_keys; | 68 | extern char ** tinytac_dflt_keys; |
| 70 | 69 | ||
| 71 | 70 | ||
