]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-process: small style changes
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 12 Nov 2025 16:46:19 +0000 (17:46 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 12 Nov 2025 16:46:19 +0000 (17:46 +0100)
src/mlmmj-process.c

index 0f41fcb2e7aa50583b72ed161093ffbbc6105f1a..431f27b14f02c651abcecb1c16af55978f423dea 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2003, 2003, 2004 Mads Martin Joergensen <mmj at mmj.dk>
- * Copyright (C) 2023 Baptiste Daroussin <bapt@FreeBSD.org>
+ * Copyright (C) 2023-2025 Baptiste Daroussin <bapt@FreeBSD.org>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -147,8 +147,10 @@ static void newmoderated(struct ml *ml, const char *mailfilename,
 
        modemailsender = statctrl(ml->ctrlfd, "modemailsender");
 
-       if(modemailsender) to = xstrdup(posteraddr);
-       else xasprintf(&to, "%s-moderators@%s", ml->name, ml->fqdn);
+       if (modemailsender)
+               to = xstrdup(posteraddr);
+       else
+               xasprintf(&to, "%s-moderators@%s", ml->name, ml->fqdn);
 
        txt = open_text(ml->fd, "moderate", "post",
                        modreason_strs[modreason], NULL, "moderation");
@@ -208,7 +210,7 @@ static void newmoderated(struct ml *ml, const char *mailfilename,
                exit(EXIT_SUCCESS);
        }
 
-       if(modemailsender) {
+       if (modemailsender) {
                memset(&mail, 0, sizeof(mail));
                mail.from = from;
                mail.to = to;