]> diplodocus.org Git - nmh/commitdiff
sbr/m_rand.c: Move prototype from h/prototypes.h to new header.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 23:02:30 +0000 (00:02 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 23:02:30 +0000 (00:02 +0100)
Makefile.am
h/prototypes.h
sbr/m_rand.c
sbr/m_rand.h [new file with mode: 0644]
sbr/message_id.c

index c3c1956654bf0a3cb4a24f0395df824559780768..12462dd7eb1d11deceaa6d6cc52450efc0dcebd2 100644 (file)
@@ -360,6 +360,7 @@ noinst_HEADERS = \
     sbr/ctype-checked.h \
     sbr/lock_file.h \
     sbr/m_mktemp.h \
+    sbr/m_rand.h \
     thirdparty/jsmn/jsmn.h \
     uip/mhfree.h \
     uip/mhoutsbr.h \
index 76332fed967856cdfb4029237c691db468ec5123..eb9c09f418aa32de3327a76519ead979e5e5e9cf 100644 (file)
@@ -233,7 +233,6 @@ int m_gmprot (void);
 char *m_maildir (char *);
 char *m_mailpath (char *);
 char *m_name (int);
-int m_rand (unsigned char *, size_t);
 
 /*
  * Create a subprocess and redirect our standard output to it.
index a05bb4ab64fcbd208b619326ea2350adca1f0dc2..3227aef9690088c61d7f5152d400615cbc39e951 100644 (file)
@@ -11,6 +11,7 @@
 #include <time.h>    /* for time() */
 
 #include <config.h>
+#include "m_rand.h"
 
 #if !HAVE_ARC4RANDOM
 static int seeded = 0;
diff --git a/sbr/m_rand.h b/sbr/m_rand.h
new file mode 100644 (file)
index 0000000..5e5c440
--- /dev/null
@@ -0,0 +1,8 @@
+/* m_rand.h -- provide pseudorandom bytes.
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
+ */
+
+int m_rand(unsigned char *buf, size_t n);
index 8c1386651d7b02cff44fc62ad10d3a3d9197aecc..78f1c4ea35e33e68b9f153fd75f7070846301b97 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <h/mh.h>
+#include "m_rand.h"
 #include <sys/time.h>  /* for gettimeofday() */