X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/17b9beb40640e8731143f61e3b94756f3e77d20c..0509728c8a506f287fa3483d8e8ffaf8fb66d41d:/sbr/message_id.c?ds=sidebyside diff --git a/sbr/message_id.c b/sbr/message_id.c index ce65ed9c..78f1c4ea 100644 --- a/sbr/message_id.c +++ b/sbr/message_id.c @@ -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,9 +7,8 @@ */ #include -#include /* for getpid() */ +#include "m_rand.h" #include /* for gettimeofday() */ -#include static enum { @@ -26,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; }