From: Franck Bui Date: Wed, 15 Sep 2021 07:14:17 +0000 (+0200) Subject: watchdog: constify watchdog_set_device() parameter X-Git-Tag: v250-rc1~670^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcc3a1830ea01a8c4b6cb529e33568e86d69eaf0;p=thirdparty%2Fsystemd.git watchdog: constify watchdog_set_device() parameter --- diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c index b42d241528e..53c7189e243 100644 --- a/src/shared/watchdog.c +++ b/src/shared/watchdog.c @@ -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); diff --git a/src/shared/watchdog.h b/src/shared/watchdog.h index 794176d3109..6e99bbdf56e 100644 --- a/src/shared/watchdog.h +++ b/src/shared/watchdog.h @@ -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);