Fix compiler warnings for objects/*
diff --git a/objects/led_controller.c b/objects/led_controller.c
index 1f542e1..96e7ad1 100644
--- a/objects/led_controller.c
+++ b/objects/led_controller.c
@@ -5,6 +5,11 @@
#include <dirent.h>
#include <systemd/sd-bus.h>
+static int led_stable_state_function(const char *, const char *);
+static int led_default_blink(const char *, const char *);
+static int read_led(const char *, const char *, void *, const size_t);
+static int led_custom_blink(const char *, sd_bus_message *);
+
/*
* These are control files that are present for each led under
*'/sys/class/leds/<led_name>/' which are used to trigger action
@@ -156,8 +161,8 @@
* Turn On or Turn Off the LED
* --------------------------------------------------------------
*/
-int
-led_stable_state_function(char *led_name, char *led_function)
+static int
+led_stable_state_function(const char *led_name, const char *led_function)
{
/* Generic error reporter. */
int rc = -1;
@@ -244,8 +249,8 @@
* Default blink action on the LED.
* ----------------------------------------------------
*/
-int
-led_default_blink(char *led_name, char *blink_type)
+static int
+led_default_blink(const char *led_name, const char *blink_type)
{
/* Generic error reporter */
int rc = -1;
@@ -281,7 +286,7 @@
* Blinks at user defined 'on' and 'off' intervals.
* -------------------------------------------------
*/
-int
+static int
led_custom_blink(const char *led_name, sd_bus_message *msg)
{
/* Generic error reporter. */
@@ -342,7 +347,7 @@
* size -or- entire contents of file whichever is smaller
* ----------------------------------------------------------------
*/
-int
+static int
read_led(const char *name, const char *ctrl_file,
void *value, const size_t len)
{