aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-05-31 09:17:34 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-05-31 09:17:34 -0800
commit5ee6f933b206724679e57de1c2cfca5c8b826d12 (patch)
treeec443753e291ed42a0274956a2768eb4406286df /lib
parent1731bd8655b81e4f588ce4adef1f9f2c165b1fc6 (diff)
downloadtinytac-5ee6f933b206724679e57de1c2cfca5c8b826d12.tar.gz
tinytac-5ee6f933b206724679e57de1c2cfca5c8b826d12.tar.bz2
tinytac-5ee6f933b206724679e57de1c2cfca5c8b826d12.tar.xz
tinytac-5ee6f933b206724679e57de1c2cfca5c8b826d12.zip
libtinytac: replacing tinytac_dflt_keys with tinytac_dflt
Diffstat (limited to 'lib')
-rw-r--r--lib/libtinytac/lmemory.c7
-rw-r--r--lib/libtinytac/lmemory.h1
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/libtinytac/lmemory.c b/lib/libtinytac/lmemory.c
index 28a05c3..a296c90 100644
--- a/lib/libtinytac/lmemory.c
+++ b/lib/libtinytac/lmemory.c
@@ -136,7 +136,6 @@ TinyTac tinytac_dflt =
136 136
137const char * tinytac_dflt_hosts = TTAC_DFLT_HOSTS; 137const char * tinytac_dflt_hosts = TTAC_DFLT_HOSTS;
138char * tinytac_dflt_hosts_buff = NULL; 138char * tinytac_dflt_hosts_buff = NULL;
139char ** tinytac_dflt_keys = NULL;
140 139
141 140
142///////////////// 141/////////////////
@@ -563,7 +562,7 @@ tinytac_set_option_keys(
563 TinyTacDebugTrace(); 562 TinyTacDebugTrace();
564 563
565 strs = NULL; 564 strs = NULL;
566 strsp = ((tt)) ? &tt->keys : &tinytac_dflt_keys; 565 strsp = ((tt)) ? &tt->keys : &tinytac_dflt.keys;
567 566
568 if ((invalue)) 567 if ((invalue))
569 { 568 {
@@ -577,8 +576,8 @@ tinytac_set_option_keys(
577 } 576 }
578 else if ((tt)) 577 else if ((tt))
579 { 578 {
580 if ((tinytac_dflt_keys)) 579 if ((tinytac_dflt.keys))
581 if (tinytacb_strsdup(&strs, tinytac_dflt_keys) != 0) 580 if (tinytacb_strsdup(&strs, tinytac_dflt.keys) != 0)
582 return(TTAC_ENOMEM); 581 return(TTAC_ENOMEM);
583 }; 582 };
584 583
diff --git a/lib/libtinytac/lmemory.h b/lib/libtinytac/lmemory.h
index 156ae46..f971d51 100644
--- a/lib/libtinytac/lmemory.h
+++ b/lib/libtinytac/lmemory.h
@@ -65,7 +65,6 @@
65extern TinyTac tinytac_dflt; 65extern TinyTac tinytac_dflt;
66extern const char * tinytac_dflt_hosts; 66extern const char * tinytac_dflt_hosts;
67extern char * tinytac_dflt_hosts_buff; 67extern char * tinytac_dflt_hosts_buff;
68extern char ** tinytac_dflt_keys;
69 68
70 69
71////////////////// 70//////////////////