]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
watchdog: constify watchdog_set_device() parameter
authorFranck Bui <fbui@suse.com>
Wed, 15 Sep 2021 07:14:17 +0000 (09:14 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 15 Sep 2021 10:14:53 +0000 (12:14 +0200)
src/shared/watchdog.c
src/shared/watchdog.h

index b42d241528ea7539d6461658f19011e446bab41c..53c7189e243e2b2b1828eabba730d6b3fea0b3b7 100644 (file)
@@ -88,7 +88,7 @@ static int open_watchdog(void) {
         return update_timeout();
 }
 
-int watchdog_set_device(char *path) {
+int watchdog_set_device(const char *path) {
         int r;
 
         r = free_and_strdup(&watchdog_device, path);
index 794176d3109fca54ac33a517c73fbea3f608f261..6e99bbdf56e0ed0b1e0b5acc44fc57c5dc7af557 100644 (file)
@@ -6,7 +6,7 @@
 #include "time-util.h"
 #include "util.h"
 
-int watchdog_set_device(char *path);
+int watchdog_set_device(const char *path);
 int watchdog_setup(usec_t timeout);
 int watchdog_ping(void);
 void watchdog_close(bool disarm);