X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4a47d073672a5d63e2d48acb498dafb6230acb52..0509728c8a506f287fa3483d8e8ffaf8fb66d41d:/sbr/message_id.c diff --git a/sbr/message_id.c b/sbr/message_id.c index bb713130..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 { @@ -23,15 +21,15 @@ static char message_id_[BUFSIZ]; /* Convert name of message id style to integer value and store it. */ int save_message_id_style (const char *value) { - if (! mh_strcasecmp (value, "localname")) { + if (! strcasecmp (value, "localname")) { message_id_style = NMH_MESSAGE_ID_LOCALNAME; return 0; - } else if (! mh_strcasecmp (value, "random")) { + } + if (! strcasecmp (value, "random")) { message_id_style = NMH_MESSAGE_ID_RANDOM; return 0; - } else { - return 1; } + return 1; }