summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-10-15 14:14:02 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-10-15 14:14:02 +0000
commit3714d955faf9c3b84ec223879d732f9618df3a3f (patch)
tree25387dbae133e6f842e3235760cd57deafd45d5a
parentfa5c741dcf40e8f792a9a91ebc07967317a46d08 (diff)
typos; from stevesk@sweden.hp.com
-rw-r--r--usr.bin/ssh/rijndael.c10
-rw-r--r--usr.bin/ssh/session.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/ssh/rijndael.c b/usr.bin/ssh/rijndael.c
index bb592bc2f84..0eb313decbd 100644
--- a/usr.bin/ssh/rijndael.c
+++ b/usr.bin/ssh/rijndael.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rijndael.c,v 1.1 2000/10/13 18:59:14 markus Exp $ */
+/* $OpenBSD: rijndael.c,v 1.2 2000/10/15 14:14:01 markus Exp $ */
/* This is an independent implementation of the encryption algorithm: */
/* */
@@ -306,7 +306,7 @@ gen_tabs(void)
}
tab_gen = 1;
-};
+}
#define star_x(x) (((x) & 0x7f7f7f7f) << 1) ^ ((((x) & 0x80808080) >> 7) * 0x1b)
@@ -399,7 +399,7 @@ rijndael_set_key(rijndael_ctx *ctx, const u4byte *in_key, const u4byte key_len,
}
return ctx;
-};
+}
/* encrypt a block of text */
@@ -444,7 +444,7 @@ rijndael_encrypt(rijndael_ctx *ctx, const u4byte *in_blk, u4byte *out_blk)
out_blk[0] = b0[0]; out_blk[1] = b0[1];
out_blk[2] = b0[2]; out_blk[3] = b0[3];
-};
+}
/* decrypt a block of text */
@@ -490,4 +490,4 @@ rijndael_decrypt(rijndael_ctx *ctx, const u4byte *in_blk, u4byte *out_blk)
out_blk[0] = b0[0]; out_blk[1] = b0[1];
out_blk[2] = b0[2]; out_blk[3] = b0[3];
-};
+}
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index df8809d7ac8..2844d19b34d 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -33,7 +33,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.39 2000/10/14 12:12:09 markus Exp $");
+RCSID("$OpenBSD: session.c,v 1.40 2000/10/15 14:14:01 markus Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -673,7 +673,7 @@ do_login(Session *s)
time_string = ctime(&last_login_time);
if (strchr(time_string, '\n'))
*strchr(time_string, '\n') = 0;
- if (strcmp(buf, "") == 0)
+ if (strcmp(hostname, "") == 0)
printf("Last login: %s\r\n", time_string);
else
printf("Last login: %s from %s\r\n", time_string, hostname);