commit 2803e5bcc8a53c200a80730c5176cb47e661069e
parent a01558fb8f446f6eeaa725cbbcec132c0232da7b
Author: Naveen Narayanan zerous <zerous@nocebo.space>
Date: Fri, 29 Dec 2017 14:27:00 +0300
style fix
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/pass.c b/pass.c
@@ -274,7 +274,7 @@ insert(char *item)
}
int
-isinit(void) /* check if .password-store exists */
+isinit(void)
{
int fp;
const char *home;
@@ -318,9 +318,8 @@ initpass(char *pgpid)
fatal("fputs");
printf("Password store initialized for %s\n", pgpid);
fclose(gpg);
- } else {
+ } else
printf("Password store initialized for %s\n", pgpid);
- }
}
int
@@ -335,11 +334,10 @@ main(int argc, char** argv)
if (!strcmp("-d", *s++))
debug = 1;
}
- loginit("pass");
if (argc > 1)
{
argv++;
-
+ loginit("pass");
if (!strcmp("init", *argv))
initpass(*(argv + 1));
else if (!strcmp("insert", *argv))