summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHenrik Grubbström (Grubba) <grubba@grubba.org>2006-04-08 22:57:07 +0200
committerNiels Möller <nisse@lysator.liu.se>2006-04-08 22:57:07 +0200
commit6ac6291052ffbe4730987e15ee9965a6a8d59f33 (patch)
tree05eb9378789a33c34831486846fd15cf25e4009d /tools
parent0042623a2ef2400632c413d46a8e3d737d557d89 (diff)
downloadnettle-6ac6291052ffbe4730987e15ee9965a6a8d59f33.tar.gz
(read_pem): Fixed c99-style declaration.
Reported by Henrik Grubbström. Rev: src/nettle/tools/pkcs1-conv.c:1.2
Diffstat (limited to 'tools')
-rw-r--r--tools/pkcs1-conv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pkcs1-conv.c b/tools/pkcs1-conv.c
index 0722b6b9..d402da07 100644
--- a/tools/pkcs1-conv.c
+++ b/tools/pkcs1-conv.c
@@ -186,9 +186,11 @@ read_pem(struct nettle_buffer *buffer, FILE *f,
/* Find start line */
for (;;)
{
+ int res;
+
nettle_buffer_reset(buffer);
- int res = read_line(buffer, f);
+ res = read_line(buffer, f);
if (res != 1)
return res;