]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Move the declaration of smemclr() out of putty.h into misc.h, because
authorSimon Tatham <anakin@pobox.com>
Sat, 28 Jul 2012 16:33:51 +0000 (16:33 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 28 Jul 2012 16:33:51 +0000 (16:33 +0000)
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
putty.h

diff --git a/misc.h b/misc.h
index 9675e96188798448c593a96abca70ad0fc7d26aa..2ca2d8e30468b661cec19c327ed6f9585de06d7a 100644 (file)
--- 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 b32b0fa1e51ee885195513a01ed215240aa79ad8..dcc80db57717549da03b866fd12956fc6908d50a 100644 (file)
--- 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.