]> diplodocus.org Git - nmh/blobdiff - sbr/message_id.c
sbr/m_maildir.c: Move prototypes from h/prototypes.h to new header.
[nmh] / sbr / message_id.c
index c20bc1c371609e57ff057be0eaef86ae04836d84..78f1c4ea35e33e68b9f153fd75f7070846301b97 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * message-id.c -- construct the body of a Message-ID or Content-ID
+/* message_id.c -- construct the body of a Message-ID or Content-ID
  *                 header field
  *
  * This code is Copyright (c) 2012, by the authors of nmh.  See the
@@ -8,6 +7,7 @@
  */
 
 #include <h/mh.h>
+#include "m_rand.h"
 #include <sys/time.h>  /* for gettimeofday() */
 
 
@@ -24,12 +24,12 @@ save_message_id_style (const char *value) {
   if (! strcasecmp (value, "localname")) {
     message_id_style = NMH_MESSAGE_ID_LOCALNAME;
     return 0;
-  } else if (! strcasecmp (value, "random")) {
+  }
+  if (! strcasecmp (value, "random")) {
     message_id_style = NMH_MESSAGE_ID_RANDOM;
     return 0;
-  } else {
-    return 1;
   }
+  return 1;
 }