diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-06-13 14:42:51 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-06-13 14:42:51 -0800 |
| commit | 8c25026a61da8cdddb22a643a255f20872da07b3 (patch) | |
| tree | 7307d363e69fb92c471d32dfd1bf974dc2440335 /src | |
| parent | 93412148b703de0726144ed6063af49e1e081658 (diff) | |
| download | tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.tar.gz tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.tar.bz2 tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.tar.xz tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.zip | |
tinytac: replacing tinytacb_XXX() with bindle_XXX()
Diffstat (limited to 'src')
| -rw-r--r-- | src/ttu/tinytacutil.c | 12 | ||||
| -rw-r--r-- | src/ttu/widget-acct.c | 6 | ||||
| -rw-r--r-- | src/ttu/widget-authen.c | 6 | ||||
| -rw-r--r-- | src/ttu/widget-author.c | 6 | ||||
| -rw-r--r-- | src/ttu/widget-config.c | 6 |
5 files changed, 28 insertions, 8 deletions
diff --git a/src/ttu/tinytacutil.c b/src/ttu/tinytacutil.c index db15b76..21bb498 100644 --- a/src/ttu/tinytacutil.c +++ b/src/ttu/tinytacutil.c | |||
| @@ -54,7 +54,11 @@ | |||
| 54 | #include <errno.h> | 54 | #include <errno.h> |
| 55 | 55 | ||
| 56 | #include <tinytac.h> | 56 | #include <tinytac.h> |
| 57 | #include <bindle_prefix.h> | 57 | #ifdef HAVE_BINDLE_PREFIX_H |
| 58 | # include <bindle_prefix.h> | ||
| 59 | #else | ||
| 60 | # include <bindle.h> | ||
| 61 | #endif | ||
| 58 | 62 | ||
| 59 | 63 | ||
| 60 | /////////////////// | 64 | /////////////////// |
| @@ -339,7 +343,7 @@ ttu_file2str( | |||
| 339 | str[sb.st_size] = '\0'; | 343 | str[sb.st_size] = '\0'; |
| 340 | close(fd); | 344 | close(fd); |
| 341 | 345 | ||
| 342 | tinytacb_strchomp(str, NULL); | 346 | bindle_strchomp(str, NULL); |
| 343 | 347 | ||
| 344 | return(str); | 348 | return(str); |
| 345 | } | 349 | } |
| @@ -367,11 +371,11 @@ ttu_password( | |||
| 367 | // prompt for password | 371 | // prompt for password |
| 368 | if ((cnf->opts & TTUTILS_OPT_PASSPROMPT)) | 372 | if ((cnf->opts & TTUTILS_OPT_PASSPROMPT)) |
| 369 | { | 373 | { |
| 370 | if ((pass = tinytacb_getpass("Enter TACACS+ Password: ")) == NULL) | 374 | if ((pass = bindle_getpass("Enter TACACS+ Password: ")) == NULL) |
| 371 | return(ttu_error(cnf, 1, "getpass: %s", strerror(errno))); | 375 | return(ttu_error(cnf, 1, "getpass: %s", strerror(errno))); |
| 372 | if ((cnf->pass_buff)) | 376 | if ((cnf->pass_buff)) |
| 373 | free(cnf->pass_buff); | 377 | free(cnf->pass_buff); |
| 374 | if ((cnf->pass_buff = tinytacb_strdup(pass)) == NULL) | 378 | if ((cnf->pass_buff = bindle_strdup(pass)) == NULL) |
| 375 | return(ttu_error(cnf, 1, "%s", strerror(errno))); | 379 | return(ttu_error(cnf, 1, "%s", strerror(errno))); |
| 376 | cnf->pass = cnf->pass_buff; | 380 | cnf->pass = cnf->pass_buff; |
| 377 | }; | 381 | }; |
diff --git a/src/ttu/widget-acct.c b/src/ttu/widget-acct.c index 32bc821..dce5bde 100644 --- a/src/ttu/widget-acct.c +++ b/src/ttu/widget-acct.c | |||
| @@ -49,7 +49,11 @@ | |||
| 49 | #include <errno.h> | 49 | #include <errno.h> |
| 50 | 50 | ||
| 51 | #include <tinytac.h> | 51 | #include <tinytac.h> |
| 52 | #include <bindle_prefix.h> | 52 | #ifdef HAVE_BINDLE_PREFIX_H |
| 53 | # include <bindle_prefix.h> | ||
| 54 | #else | ||
| 55 | # include <bindle.h> | ||
| 56 | #endif | ||
| 53 | 57 | ||
| 54 | 58 | ||
| 55 | /////////////////// | 59 | /////////////////// |
diff --git a/src/ttu/widget-authen.c b/src/ttu/widget-authen.c index 0c722f9..dbbd9c0 100644 --- a/src/ttu/widget-authen.c +++ b/src/ttu/widget-authen.c | |||
| @@ -49,7 +49,11 @@ | |||
| 49 | #include <errno.h> | 49 | #include <errno.h> |
| 50 | 50 | ||
| 51 | #include <tinytac.h> | 51 | #include <tinytac.h> |
| 52 | #include <bindle_prefix.h> | 52 | #ifdef HAVE_BINDLE_PREFIX_H |
| 53 | # include <bindle_prefix.h> | ||
| 54 | #else | ||
| 55 | # include <bindle.h> | ||
| 56 | #endif | ||
| 53 | 57 | ||
| 54 | 58 | ||
| 55 | /////////////////// | 59 | /////////////////// |
diff --git a/src/ttu/widget-author.c b/src/ttu/widget-author.c index 0f2d351..ebdab4a 100644 --- a/src/ttu/widget-author.c +++ b/src/ttu/widget-author.c | |||
| @@ -49,7 +49,11 @@ | |||
| 49 | #include <errno.h> | 49 | #include <errno.h> |
| 50 | 50 | ||
| 51 | #include <tinytac.h> | 51 | #include <tinytac.h> |
| 52 | #include <bindle_prefix.h> | 52 | #ifdef HAVE_BINDLE_PREFIX_H |
| 53 | # include <bindle_prefix.h> | ||
| 54 | #else | ||
| 55 | # include <bindle.h> | ||
| 56 | #endif | ||
| 53 | 57 | ||
| 54 | 58 | ||
| 55 | /////////////////// | 59 | /////////////////// |
diff --git a/src/ttu/widget-config.c b/src/ttu/widget-config.c index e3e962e..f6a8181 100644 --- a/src/ttu/widget-config.c +++ b/src/ttu/widget-config.c | |||
| @@ -42,7 +42,11 @@ | |||
| 42 | #include <assert.h> | 42 | #include <assert.h> |
| 43 | 43 | ||
| 44 | #include <tinytac.h> | 44 | #include <tinytac.h> |
| 45 | #include <bindle_prefix.h> | 45 | #ifdef HAVE_BINDLE_PREFIX_H |
| 46 | # include <bindle_prefix.h> | ||
| 47 | #else | ||
| 48 | # include <bindle.h> | ||
| 49 | #endif | ||
| 46 | 50 | ||
| 47 | 51 | ||
| 48 | ///////////////// | 52 | ///////////////// |
