This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=e9db995536768405bb6bf074e0364087f1526e98

commit e9db995536768405bb6bf074e0364087f1526e98
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Dec 13 03:26:13 2022 +0100

    build: Fix m4 files coding style
---
 m4/dpkg-funcs.m4 | 20 ++++++++++++--------
 m4/dpkg-libs.m4  | 14 +++++++-------
 2 files changed, 19 insertions(+), 15 deletions(-)

diff --git a/m4/dpkg-funcs.m4 b/m4/dpkg-funcs.m4
index e5f302b9c..127a67ea3 100644
--- a/m4/dpkg-funcs.m4
+++ b/m4/dpkg-funcs.m4
@@ -36,7 +36,7 @@ AC_DEFUN([DPKG_FUNC_FSYNC_DIR], [
 #include <stddef.h>
 #include <dirent.h>
 #include <unistd.h>
-]], [[
+      ]], [[
        int fd;
        DIR *dir = opendir(".");
        if (dir == NULL)
@@ -97,7 +97,7 @@ int test_vsnprintf(const char *fmt, ...)
 
        return n;
 }
-]], [[
+      ]], [[
        int n;
 
        n = snprintf(NULL, 0, "format %s %d", "string", 10);
@@ -175,9 +175,11 @@ AC_DEFUN([DPKG_USE_DISK_PREALLOCATE], [
 AC_DEFUN([DPKG_CHECK_PROGNAME], [
   AC_MSG_CHECKING([for program_invocation_short_name])
   AC_LINK_IFELSE([
-    AC_LANG_PROGRAM(
-      [[#include <errno.h>]],
-      [[const char *p = program_invocation_short_name;]])
+    AC_LANG_PROGRAM([[
+#include <errno.h>
+    ]], [[
+const char *p = program_invocation_short_name;
+    ]])
   ], [
     AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1],
       [Define to 1 if you have program_invocation_short_name])
@@ -188,9 +190,11 @@ AC_DEFUN([DPKG_CHECK_PROGNAME], [
 
   AC_MSG_CHECKING([for __progname])
   AC_LINK_IFELSE([
-    AC_LANG_PROGRAM(
-      [[extern char *__progname;]],
-      [[printf("%s", __progname);]])
+    AC_LANG_PROGRAM([[
+extern char *__progname;
+    ]], [[
+printf("%s", __progname);
+    ]])
   ], [
     AC_DEFINE([HAVE___PROGNAME], [1], [Define to 1 if you have __progname])
     AC_MSG_RESULT([yes])
diff --git a/m4/dpkg-libs.m4 b/m4/dpkg-libs.m4
index 8dd1ebda5..4c02e83ca 100644
--- a/m4/dpkg-libs.m4
+++ b/m4/dpkg-libs.m4
@@ -69,11 +69,11 @@ AC_DEFUN([DPKG_LIB_Z], [
   DPKG_WITH_COMPRESS_LIB([z-ng], [zlib-ng.h], [zng_gzdopen])
 
   AC_DEFINE([USE_LIBZ_IMPL_NONE], [0],
-            [Define none as 0 for the zlib implementation enum])
+    [Define none as 0 for the zlib implementation enum])
   AC_DEFINE([USE_LIBZ_IMPL_ZLIB], [1],
-            [Define zlib as 1 for the zlib implementation enum])
+    [Define zlib as 1 for the zlib implementation enum])
   AC_DEFINE([USE_LIBZ_IMPL_ZLIB_NG], [2],
-            [Define zlib-ng as 2 for the zlib implementation enum])
+    [Define zlib-ng as 2 for the zlib implementation enum])
 
   # If we have been requested the stock zlib, override the auto-detection.
   AS_IF([test "x$with_libz" != "xyes" && test "x$have_libz_ng" = "xyes"], [
@@ -90,7 +90,7 @@ AC_DEFUN([DPKG_LIB_Z], [
     have_libz_impl="no"
   ])
   AC_DEFINE_UNQUOTED([USE_LIBZ_IMPL], [$use_libz_impl],
-                     [Define to the zlib implementation to use])
+    [Define to the zlib implementation to use])
 ])# DPKG_LIB_Z
 
 # DPKG_LIB_LZMA
@@ -100,7 +100,7 @@ AC_DEFUN([DPKG_LIB_LZMA], [
   DPKG_WITH_COMPRESS_LIB([lzma], [lzma.h], [lzma_alone_decoder])
   AC_CHECK_LIB([lzma], [lzma_stream_encoder_mt], [
     AC_DEFINE([HAVE_LZMA_MT_ENCODER], [1],
-              [xz multithreaded compression support])
+      [xz multithreaded compression support])
   ])
 ])# DPKG_LIB_LZMA
 
@@ -169,10 +169,10 @@ AC_DEFUN([DPKG_LIB_CURSES], [
   AC_REQUIRE([DPKG_UNICODE])
   AC_ARG_VAR([CURSES_LIBS], [linker flags for curses library])dnl
   AC_CHECK_HEADERS([ncurses/ncurses.h ncurses.h curses.h ncurses/term.h 
term.h],
-                   [have_curses_header=yes])
+    [have_curses_header=yes])
   AS_IF([test "x$USE_UNICODE" = "xyes"], [
     AC_CHECK_HEADERS([ncursesw/ncurses.h ncursesw/term.h],
-                     [have_curses_header=yes])
+      [have_curses_header=yes])
     AC_CHECK_LIB([ncursesw], [initscr], [
       CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncursesw"
     ], [

-- 
Dpkg.Org's dpkg

Reply via email to