tRename storepass/showpass functions - safe - password protected secret keeper
(HTM) git clone git://git.z3bra.org/safe.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f6e9536793455014d50e02a8a90eddb186cdfee8
(DIR) parent 87a1567b9976e01bd34fd4807fe77c1e92b50a49
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Fri, 8 Mar 2019 11:26:41 +0100
Rename storepass/showpass functions
Diffstat:
M safe.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/safe.c b/safe.c
t@@ -95,7 +95,7 @@ hash(uint8_t *buf, size_t size, uint8_t *md)
}
int
-storepass(int fd, char *name)
+store_secret(int fd, char *name)
{
int sfd;
ssize_t n;
t@@ -117,7 +117,7 @@ storepass(int fd, char *name)
}
int
-showpass(int fd, char *name)
+show_secret(int fd, char *name)
{
int sfd;
ssize_t n;
t@@ -172,9 +172,9 @@ main(int argc, char *argv[])
secret = argv[0];
if (aflag) {
- storepass(STDIN_FILENO, secret);
+ store_secret(STDIN_FILENO, secret);
} else {
- showpass(STDOUT_FILENO, secret);
+ show_secret(STDOUT_FILENO, secret);
}
return 0;