While reviewing m4/selinux-selinux-h.m4, I found two syntax errors.
One from yesterday, and one dating back to 2009-06-27.

They were apparently harmless, but still an open door to further
unintentional bugs.


2024-09-30  Bruno Haible  <br...@clisp.org>

        selinux-h: Fix two syntax errors.
        * m4/selinux-selinux-h.m4 (gl_CHECK_HEADER_SELINUX_SELINUX_H):
        Terminate each 'case' clause with ';;'. Remove extraneous closing brace.

diff --git a/m4/selinux-selinux-h.m4 b/m4/selinux-selinux-h.m4
index a141defef0..cabc244baa 100644
--- a/m4/selinux-selinux-h.m4
+++ b/m4/selinux-selinux-h.m4
@@ -1,5 +1,5 @@
 # selinux-selinux-h.m4
-# serial 9   -*- Autoconf -*-
+# serial 10   -*- Autoconf -*-
 dnl Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,6 +54,7 @@ AC_DEFUN([gl_CHECK_HEADER_SELINUX_SELINUX_H]
       *:no)
         AC_MSG_WARN([libselinux was found but selinux/selinux.h is missing.])
         AC_MSG_WARN([AC_PACKAGE_NAME will be compiled without SELinux 
support.])
+        ;;
     esac
   else
     # Do as if <selinux/selinux.h> does not exist, even if
@@ -62,7 +63,7 @@ AC_DEFUN([gl_CHECK_HEADER_SELINUX_SELINUX_H]
   fi
   AC_SUBST([USE_SELINUX_SELINUX_H])
   AC_DEFINE_UNQUOTED([USE_SELINUX_SELINUX_H], [$USE_SELINUX_SELINUX_H],
-    [Define to 1 if <selinux/selinux.h> should be used, to 0 otherwise.])])
+    [Define to 1 if <selinux/selinux.h> should be used, to 0 otherwise.])
 ])
 
 AC_DEFUN([gl_LIBSELINUX],




Reply via email to