summaryrefslogtreecommitdiffstats
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2007-01-05 06:29:55 +0100
committerDamien Miller <djm@mindrot.org>2007-01-05 06:29:55 +0100
commit6c7439f963c04ddeedbb858c5f96647eea3c9360 (patch)
tree8252c49b2e89fac8870a158038ca3e8999fb62c8 /ssh-keygen.c
parent - jmc@cvs.openbsd.org 2007/01/02 09:57:25 (diff)
downloadopenssh-6c7439f963c04ddeedbb858c5f96647eea3c9360.tar.xz
openssh-6c7439f963c04ddeedbb858c5f96647eea3c9360.zip
- stevesk@cvs.openbsd.org 2007/01/03 00:53:38
[ssh-keygen.c] remove small dead code; arnaud.lacombe.1@ulaval.ca via Coverity scan
Diffstat (limited to '')
-rw-r--r--ssh-keygen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index dfa1166c2..f43b12493 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.156 2006/11/14 19:41:04 deraadt Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.157 2007/01/03 00:53:38 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -346,9 +346,8 @@ get_line(FILE *fp, char *line, size_t len)
line[pos++] = c;
line[pos] = '\0';
}
- if (c == EOF)
- return -1;
- return pos;
+ /* We reached EOF */
+ return -1;
}
static void