diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-19 23:06:26 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-19 23:06:26 +0000 |
commit | 9d787e27ba1ff3e733eba4b5b061867a3378251e (patch) | |
tree | f47384d750ce21949b09dc50137c5e10044fd54f /usr.bin/tcfs/tcfsgenkey.c | |
parent | 86c00b230b2edb5f31c3feff302c91fb0000bf26 (diff) |
more KNF
Diffstat (limited to 'usr.bin/tcfs/tcfsgenkey.c')
-rw-r--r-- | usr.bin/tcfs/tcfsgenkey.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/tcfs/tcfsgenkey.c b/usr.bin/tcfs/tcfsgenkey.c index a244b17f150..072081e338b 100644 --- a/usr.bin/tcfs/tcfsgenkey.c +++ b/usr.bin/tcfs/tcfsgenkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsgenkey.c,v 1.6 2000/06/19 22:42:28 aaron Exp $ */ +/* $OpenBSD: tcfsgenkey.c,v 1.7 2000/06/19 23:06:25 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -65,7 +65,8 @@ genkey_main(int argn, char *argv[]) tcfs_error(ER_CUSTOM, "Who are you?!"); if (!tcfs_getpwnam(user, &user_info)) - tcfs_error(ER_CUSTOM, "You do not have an entry in the TCFS key database."); + tcfs_error(ER_CUSTOM, + "You do not have an entry in the TCFS key database."); if (strlen(user_info->upw)) tcfs_error(ER_CUSTOM, "You already have a TCFS key."); @@ -78,12 +79,13 @@ genkey_main(int argn, char *argv[]) /* * Encrypt the generated key with user password */ - cryptedkey = (char*)calloc(UUKEYSIZE + 1, sizeof(char)); + cryptedkey = (char *)calloc(UUKEYSIZE + 1, sizeof(char)); if (!cryptedkey) tcfs_error(ER_MEM, NULL); - if (!tcfs_encrypt_key(passwd, newkey, KEYSIZE, cryptedkey, UUKEYSIZE + 1)) + if (!tcfs_encrypt_key(passwd, newkey, KEYSIZE, cryptedkey, + UUKEYSIZE + 1)) tcfs_error(ER_MEM, NULL); /* |