]> git.earman.xyz Git - sensor-watch.git/commitdiff
Fix compile errors and warnings in movement.c and shell.c
authorTheOnePerson <a.nebinger@web.de>
Fri, 29 Mar 2024 10:49:48 +0000 (11:49 +0100)
committerTheOnePerson <a.nebinger@web.de>
Fri, 29 Mar 2024 10:49:48 +0000 (11:49 +0100)
movement/movement.c
movement/shell.c

index 0b292a1538fee55de843861905459125439fef52..cb3dcf78e9b215c6ce4aa8eff24be3a02c80c096 100644 (file)
@@ -319,11 +319,11 @@ void movement_request_wake() {
     _movement_reset_inactivity_countdown();
 }
 
-void end_buzzing() {
+static void end_buzzing() {
     movement_state.is_buzzing = false;
 }
 
-void end_buzzing_and_disable_buzzer(void) {
+static void end_buzzing_and_disable_buzzer(void) {
     end_buzzing();
     watch_disable_buzzer();
 }
index 8f146e5972a0623e64842d06c1cdbee059347131..378206806da8aa242de2b65bf8ded51c1e768fa8 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #if __EMSCRIPTEN__
 #include <emscripten.h>
@@ -57,7 +58,7 @@ static char *prv_skip_whitespace(char *c) {
         if (*c == 0) {
             return NULL;
         }
-        if (!isspace((int) *c) != 0) {
+        if ((!isspace((int) *c)) != 0) {
             return c;
         }
         c++;