summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-12-19 07:18:56 +0000
committerderaadt <deraadt@openbsd.org>2001-12-19 07:18:56 +0000
commit660b1623ac34469dd86eaf69a3bccd2a8642bb90 (patch)
tree5ba7846ddd7874585d9bc2e7332ee4b225377280 /usr.bin/ssh/ssh-add.c
parentIntroduce brdtyp and change what cputyp means. (diff)
downloadwireguard-openbsd-660b1623ac34469dd86eaf69a3bccd2a8642bb90.tar.xz
wireguard-openbsd-660b1623ac34469dd86eaf69a3bccd2a8642bb90.zip
basic KNF done while i was looking for something else
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r--usr.bin/ssh/ssh-add.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 7d284d27be0..f51ff7ee231 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/ssh-add.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.46 2001/10/02 08:38:50 djm Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.47 2001/12/19 07:18:56 deraadt Exp $");
#include <openssl/evp.h>
@@ -84,7 +84,7 @@ delete_file(AuthenticationConnection *ac, const char *filename)
key_free(public);
xfree(comment);
-
+
return ret;
}
@@ -154,7 +154,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
xfree(comment);
key_free(private);
-
+
return ret;
}
@@ -163,11 +163,11 @@ update_card(AuthenticationConnection *ac, int add, const char *id)
{
if (ssh_update_card(ac, add, id)) {
fprintf(stderr, "Card %s: %s\n",
- add ? "added" : "removed", id);
+ add ? "added" : "removed", id);
return 0;
} else {
fprintf(stderr, "Could not %s card: %s\n",
- add ? "add" : "remove", id);
+ add ? "add" : "remove", id);
return -1;
}
}
@@ -182,8 +182,8 @@ list_identities(AuthenticationConnection *ac, int do_fp)
for (version = 1; version <= 2; version++) {
for (key = ssh_get_first_identity(ac, &comment, version);
- key != NULL;
- key = ssh_get_next_identity(ac, &comment, version)) {
+ key != NULL;
+ key = ssh_get_next_identity(ac, &comment, version)) {
had_identities = 1;
if (do_fp) {
fp = key_fingerprint(key, SSH_FP_MD5,
@@ -238,7 +238,7 @@ main(int argc, char **argv)
fprintf(stderr, "Could not open a connection to your authentication agent.\n");
exit(1);
}
- while ((ch = getopt(argc, argv, "lLdDe:s:")) != -1) {
+ while ((ch = getopt(argc, argv, "lLdDe:s:")) != -1) {
switch (ch) {
case 'l':
case 'L':
@@ -257,7 +257,7 @@ main(int argc, char **argv)
sc_reader_id = optarg;
break;
case 'e':
- deleting = 1;
+ deleting = 1;
sc_reader_id = optarg;
break;
default: