aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-05-30 23:32:50 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-05-30 23:32:50 -0800
commited3f2e98febaa91f5e54abe15f9a8581009e1704 (patch)
treecfc9b2eca259a5fd1a79d5a8ccb3beb43c3921da
parent534888d745fa055ea792a4106c268e007653cdae (diff)
downloadtinytac-ed3f2e98febaa91f5e54abe15f9a8581009e1704.tar.gz
tinytac-ed3f2e98febaa91f5e54abe15f9a8581009e1704.tar.bz2
tinytac-ed3f2e98febaa91f5e54abe15f9a8581009e1704.tar.xz
tinytac-ed3f2e98febaa91f5e54abe15f9a8581009e1704.zip
tinytac: adding debug ident
-rw-r--r--src/ttu/tinytacutil.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ttu/tinytacutil.c b/src/ttu/tinytacutil.c
index c45e3ed..a122f50 100644
--- a/src/ttu/tinytacutil.c
+++ b/src/ttu/tinytacutil.c
@@ -48,6 +48,8 @@
48#include <assert.h> 48#include <assert.h>
49#include <errno.h> 49#include <errno.h>
50 50
51#include <tinytac.h>
52
51 53
52/////////////////// 54///////////////////
53// // 55// //
@@ -117,6 +119,7 @@ main(
117int main(int argc, char * argv[]) 119int main(int argc, char * argv[])
118{ 120{
119 int c; 121 int c;
122 int rc;
120 int opt_index; 123 int opt_index;
121 124
122 // getopt options 125 // getopt options
@@ -131,6 +134,12 @@ int main(int argc, char * argv[])
131 { NULL, 0, NULL, 0 } 134 { NULL, 0, NULL, 0 }
132 }; 135 };
133 136
137 if ((rc = tinytac_set_option(NULL, TTAC_OPT_DEBUG_IDENT, PROGRAM_NAME)) != TTAC_SUCCESS)
138 {
139 fprintf(stderr, "%s: tinytac_set_option(%s): %s\n", PROGRAM_NAME, "TTAC_OPT_DEBUG_IDENT", tinytac_strerror(rc));
140 return(1);
141 };
142
134 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1) 143 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1)
135 { 144 {
136 switch(c) 145 switch(c)