From bcc3a1830ea01a8c4b6cb529e33568e86d69eaf0 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Wed, 15 Sep 2021 09:14:17 +0200 Subject: [PATCH] watchdog: constify watchdog_set_device() parameter --- src/shared/watchdog.c | 2 +- src/shared/watchdog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.3