]> 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 c3c1956..12462dd 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 76332fe..eb9c09f 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 a05bb4a..3227aef 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 8c13866..78f1c4e 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <h/mh.h>
+#include "m_rand.h"
 #include <sys/time.h>  /* for gettimeofday() */