mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
watchdog: constify watchdog_set_device() parameter
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user