]> Savannah Git Hosting - gnulib.git/commitdiff
aligned-malloc, rmdir-errno: Sanitize configuration test result.
authorBruno Haible <bruno@clisp.org>
Thu, 15 Jun 2023 06:38:48 +0000 (08:38 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Jun 2023 06:54:38 +0000 (08:54 +0200)
* m4/malloc-align.m4 (gl_MALLOC_ALIGNMENT): Don't put a newline at the
end of the conftest.out file.
* m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Don't put a newline at the
end of the confdir2/errno file.

ChangeLog
m4/malloc-align.m4
m4/rmdir-errno.m4

index 81df887afd99e0f3fa26919153cf946f0a425e65..830113e0e22f43f4bc614a97ec0ea041ca4649e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-06-15  Bruno Haible  <bruno@clisp.org>
+
+       aligned-malloc, rmdir-errno: Sanitize configuration test result.
+       * m4/malloc-align.m4 (gl_MALLOC_ALIGNMENT): Don't put a newline at the
+       end of the conftest.out file.
+       * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Don't put a newline at the
+       end of the confdir2/errno file.
+
 2023-06-09  Jim Meyering  <meyering@meta.com>
 
        maint.mk: sc_prohibit_xalloc_without_use: also match alloc_die
index 1317773fe0b2b0db83e6c6ba092987a045cf08a7..0bbe1d95be0cabf5405b6c2c17d39bb44cc666f1 100644 (file)
@@ -1,5 +1,5 @@
-# malloc-align.m4 serial 1
-dnl Copyright (C) 2020-2022 Free Software Foundation, Inc.
+# malloc-align.m4 serial 2
+dnl Copyright (C) 2020-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -71,7 +71,7 @@ AC_DEFUN([gl_MALLOC_ALIGNMENT],
               bits |= (uintptr_t) malloc (17027);
               bits |= (uintptr_t) malloc (81231);
               bits |= (uintptr_t) malloc (81231);
-              fprintf (fp, "%u\n", (unsigned int) (((bits ^ (bits - 1)) + 1) >> 1));
+              fprintf (fp, "%u", (unsigned int) (((bits ^ (bits - 1)) + 1) >> 1));
             }
             if (fclose (fp) != 0)
               return 2;
index 248b6acc1f4d6d582aa401f1de432cb8695e3aa2..b1c38f10db5a84a5e25d717d0e67b4a456dbd690 100644 (file)
@@ -1,6 +1,6 @@
-# serial 14
+# serial 15
 
-# Copyright (C) 2000-2001, 2005-2006, 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2000-2001, 2005-2006, 2009-2023 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -34,7 +34,7 @@ AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY],
           rmdir ("confdir2");
           val = errno;
           s = fopen ("confdir2/errno", "w");
-          fprintf (s, "%d\n", val);
+          fprintf (s, "%d", val);
           fclose (s);
           return 0;
         }