safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit 0e3bc29152db3cd63639a159ac9b036191d15f26
parent bb6f5f8dfd93aea029e27e5c38964bbf05c649a2
Author: z3bra <contactatz3bradotorg>
Date:   Wed, 22 May 2019 09:34:56 +0200

Make usage() the first declared function

Diffstat:
safe.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/safe.c b/safe.c @@ -35,6 +35,13 @@ uint8_t *passphrase; uint32_t pplen; void +usage(void) +{ + fprintf(stderr, "usage: %s [-h] [-s safe] [[-a] entry]\n", argv0); + exit(1); +} + +void str2bin(char *s, uint8_t *d, size_t size) { size_t i; @@ -92,13 +99,6 @@ xwrite(int fd, const void *buf, size_t nbytes) return total; } -void -usage(void) -{ - fprintf(stderr, "usage: %s [-h] [-s safe] [[-a] entry]\n", argv0); - exit(1); -} - static int readpass(const char *prompt, uint8_t **target, uint32_t *len) {