From b0bb426aa7ade2204b1d5b7f3f3570ebf7501c56 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 28 Jul 2012 16:33:51 +0000 Subject: [PATCH] Move the declaration of smemclr() out of putty.h into misc.h, because one of its uses (in sshaes.c) wasn't picking up the former. Thanks to Ubuntu's gcc for spotting that. [originally from svn r9590] --- misc.h | 2 ++ putty.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/misc.h b/misc.h index 9675e961..2ca2d8e3 100644 --- a/misc.h +++ b/misc.h @@ -50,6 +50,8 @@ void bufchain_fetch(bufchain *ch, void *data, int len); struct tm ltime(void); +void smemclr(void *b, size_t len); + /* * Debugging functions. * diff --git a/putty.h b/putty.h index b32b0fa1..dcc80db5 100644 --- a/putty.h +++ b/putty.h @@ -1291,7 +1291,6 @@ int filename_serialise(const Filename *f, void *data); Filename *filename_deserialise(void *data, int maxsize, int *used); char *get_username(void); /* return value needs freeing */ char *get_random_data(int bytes); /* used in cmdgen.c */ -void smemclr(void *b, size_t len); /* * Exports and imports from timing.c.