aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ttu/tinytacutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ttu/tinytacutil.c')
-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)