@@ -28,7 +28,7 @@ typedef struct {
} SoftwareWatchdog;
// return -1 on error
-int swd_setup(SoftwareWatchdog *watchdog, char *name, timeout_cb_t timeout_cb, struct timespec timeout, void *userData);
+int swd_setup(SoftwareWatchdog *watchdog, const char *name, timeout_cb_t timeout_cb, struct timespec timeout, void *userData);
int swd_enable(SoftwareWatchdog *watchdog);
void swd_disable(SoftwareWatchdog *watchdog);
void swd_kick(SoftwareWatchdog *watchdog);
@@ -155,7 +155,7 @@ void *timer (void *data) {
}
-int swd_setup(SoftwareWatchdog* watchdog, char *name, timeout_cb_t timeout_cb, struct timespec timeout, void *userData){
+int swd_setup(SoftwareWatchdog* watchdog, const char *name, timeout_cb_t timeout_cb, struct timespec timeout, void *userData){
// TODO: check input parameters
watchdog->name = strdup(name);
watchdog->timeout_cb = timeout_cb;