]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: haproxy: fix build error when RLIMIT_AS is not set
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Jul 2020 13:38:35 +0000 (15:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Jul 2020 13:38:35 +0000 (15:38 +0200)
As reported in issue #724, openbsd fails to build in haproxy.c
due to a faulty comma in the middle of a warning message. This code
is only compiled when RLIMIT_AS is not defined, which seems to be
rare these days.

This may be backported to older versions as the problem was likely
introduced when strict limits were added.

src/haproxy.c

index e733d454df16256fc7503323322f05e521a449bd..7537d93f150477e5b37b5b00d78720325669fd5c 100644 (file)
@@ -3204,7 +3204,7 @@ int main(int argc, char **argv)
                                        exit(1);
                        }
                        else
-                               ha_warning("[%s.main()] Cannot fix MEM limit to %d megs.",
+                               ha_warning("[%s.main()] Cannot fix MEM limit to %d megs."
                                           "This will fail in >= v2.3\n",
                                           argv[0], global.rlimit_memmax);
                }