From 01e8f8a09ab273719bdf0869f9f8693cb45d302e Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 6 Jul 2020 20:30:31 +0200 Subject: Guard block is missing --- battstat/apmlib/apm.h | 5 +++++ charpick/charpick.h | 5 +++++ stickynotes/stickynotes_applet_callbacks.h | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/battstat/apmlib/apm.h b/battstat/apmlib/apm.h index c24041c2..fd1f6eb6 100644 --- a/battstat/apmlib/apm.h +++ b/battstat/apmlib/apm.h @@ -20,6 +20,9 @@ * $Id$ * */ +#ifndef __APM_H__ +#define __APM_H__ + #include #include @@ -75,3 +78,5 @@ extern const char *apm_time_nosec(time_t t); #ifdef APM_IOC_REJECT #define APM_REJECT_ENABLED #endif + +#endif /* __APM_H__ */ diff --git a/charpick/charpick.h b/charpick/charpick.h index 939556ba..57e44b27 100644 --- a/charpick/charpick.h +++ b/charpick/charpick.h @@ -1,5 +1,8 @@ /* charpick.h -- header file for character picker applet */ +#ifndef __CHARPICK_H__ +#define __CHARPICK_H__ + #include #include #include @@ -59,3 +62,5 @@ void set_atk_name_description (GtkWidget *widget, const char *description); gboolean key_writable (MatePanelApplet *applet, const char *key); + +#endif /* __CHARPICK_H__ */ diff --git a/stickynotes/stickynotes_applet_callbacks.h b/stickynotes/stickynotes_applet_callbacks.h index 7cee63da..3e8603de 100644 --- a/stickynotes/stickynotes_applet_callbacks.h +++ b/stickynotes/stickynotes_applet_callbacks.h @@ -17,11 +17,11 @@ * 02110-1301, USA. */ -#include - #ifndef __STICKYNOTES_APPLET_CALLBACKS_H__ #define __STICKYNOTES_APPLET_CALLBACKS_H__ +#include + /* Callbacks for the sticky notes applet */ gboolean applet_button_cb(GtkWidget *widget, GdkEventButton *event, StickyNotesApplet *applet); gboolean applet_key_cb(GtkWidget *widget, GdkEventKey *event, StickyNotesApplet *applet); @@ -49,4 +49,4 @@ void preferences_apply_cb(GSettings *settings, gchar *key, gpointer data); void preferences_response_cb(GtkWidget *dialog, gint response, gpointer data); gboolean preferences_delete_cb(GtkWidget *widget, GdkEvent *event, gpointer data); -#endif /* __STICKYNOTES_APPLET_CALLBACKS_H__ */ +#endif /* __STICKYNOTES_APPLET_CALLBACKS_H__ */ \ No newline at end of file -- cgit v1.2.1