[monitoring-plugins] check_apt: clang-format

Lorenz Kästle git at monitoring-plugins.org
Fri Nov 8 23:00:12 CET 2024


 Module: monitoring-plugins
 Branch: master
 Commit: 540d609d845869a5c826f8190bdfed47db1e4259
 Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
   Date: Fri Nov  8 10:50:22 2024 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=540d609

check_apt: clang-format

---

 plugins/check_apt.c | 64 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 34 insertions(+), 30 deletions(-)

diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index c2c693e..ac89f81 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -1,33 +1,33 @@
 /*****************************************************************************
-*
-* Monitoring check_apt plugin
-*
-* License: GPL
-* Copyright (c) 2006-2024 Monitoring Plugins Development Team
-*
-* Original author: Sean Finney
-*
-* Description:
-*
-* This file contains the check_apt plugin
-*
-* Check for available updates in apt package management systems
-*
-*
-* This program is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*
-*****************************************************************************/
+ *
+ * Monitoring check_apt plugin
+ *
+ * License: GPL
+ * Copyright (c) 2006-2024 Monitoring Plugins Development Team
+ *
+ * Original author: Sean Finney
+ *
+ * Description:
+ *
+ * This file contains the check_apt plugin
+ *
+ * Check for available updates in apt package management systems
+ *
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ *****************************************************************************/
 
 const char *progname = "check_apt";
 const char *copyright = "2006-2024";
@@ -39,7 +39,11 @@ const char *email = "devel at monitoring-plugins.org";
 #include "regex.h"
 
 /* some constants */
-typedef enum { UPGRADE, DIST_UPGRADE, NO_UPGRADE } upgrade_type;
+typedef enum {
+	UPGRADE,
+	DIST_UPGRADE,
+	NO_UPGRADE
+} upgrade_type;
 
 /* Character for hidden input file option (for testing). */
 #define INPUT_FILE_OPT CHAR_MAX + 1



More information about the Commits mailing list