aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-12-30 13:18:28 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-12-30 13:18:28 -0900
commitbed81289a1a8a27f19c243b61f255e1ea8ec138f (patch)
tree83c64f1a217f434741a64898eaf1dda984fc76b3 /src
parent91ce9437fbe829f8e1bf368c02e534f181eed4fc (diff)
downloadotputils-bed81289a1a8a27f19c243b61f255e1ea8ec138f.tar.gz
otputils-bed81289a1a8a27f19c243b61f255e1ea8ec138f.tar.bz2
otputils-bed81289a1a8a27f19c243b61f255e1ea8ec138f.tar.xz
otputils-bed81289a1a8a27f19c243b61f255e1ea8ec138f.zip
libtotputils: renaming totputils_get_param() to otputil_get_param()
Diffstat (limited to 'src')
-rw-r--r--src/widget-code.c4
-rw-r--r--src/widget-info.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/widget-code.c b/src/widget-code.c
index c63d64c..f6eb75e 100644
--- a/src/widget-code.c
+++ b/src/widget-code.c
@@ -86,12 +86,12 @@ totp_widget_code(
86 return((rc == -1) ? 0 : 1); 86 return((rc == -1) ? 0 : 1);
87 87
88 // retrieve OTP secret information 88 // retrieve OTP secret information
89 if ((rc = totputils_get_param(cnf->tud, OTPUTIL_OPT_METHOD, &otp_method)) != 0) 89 if ((rc = otputil_get_param(cnf->tud, OTPUTIL_OPT_METHOD, &otp_method)) != 0)
90 { 90 {
91 fprintf(stderr, "%s: totputils_get_param(METHOD): %s\n", cnf->prog_name, otputil_err2string(rc)); 91 fprintf(stderr, "%s: totputils_get_param(METHOD): %s\n", cnf->prog_name, otputil_err2string(rc));
92 return(1); 92 return(1);
93 }; 93 };
94 if ((rc = totputils_get_param(cnf->tud, OTPUTIL_OPT_TX, &totp_tx)) != 0) 94 if ((rc = otputil_get_param(cnf->tud, OTPUTIL_OPT_TX, &totp_tx)) != 0)
95 { 95 {
96 fprintf(stderr, "%s: totputils_get_param(TX): %s\n", cnf->prog_name, otputil_err2string(rc)); 96 fprintf(stderr, "%s: totputils_get_param(TX): %s\n", cnf->prog_name, otputil_err2string(rc));
97 return(1); 97 return(1);
diff --git a/src/widget-info.c b/src/widget-info.c
index acb9c75..ffeca66 100644
--- a/src/widget-info.c
+++ b/src/widget-info.c
@@ -147,7 +147,7 @@ totp_widget_info_get(
147 void * outvalue ) 147 void * outvalue )
148{ 148{
149 int rc; 149 int rc;
150 if ((rc = totputils_get_param(cnf->tud, option, outvalue)) == 0) 150 if ((rc = otputil_get_param(cnf->tud, option, outvalue)) == 0)
151 return(0); 151 return(0);
152 fprintf(stderr, "%s: totputils_get_param(%s): %s\n", cnf->prog_name, str, otputil_err2string(rc)); 152 fprintf(stderr, "%s: totputils_get_param(%s): %s\n", cnf->prog_name, str, otputil_err2string(rc));
153 return(rc); 153 return(rc);