diff options
Diffstat (limited to 'src/jo_notify.cpp')
-rw-r--r-- | src/jo_notify.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jo_notify.cpp b/src/jo_notify.cpp index 1683871..bd14db0 100644 --- a/src/jo_notify.cpp +++ b/src/jo_notify.cpp @@ -1,6 +1,6 @@ #include <jo_lowbat.hpp> -void +int jo_notify(const string batlvl) { string str = nullptr; const char *cmd = nullptr; @@ -10,10 +10,10 @@ jo_notify(const string batlvl) { str += "%\" \"Please plug in computer\" -u critical -t 15000"; cmd = str.c_str(); - system(cmd); + return system(cmd); } -void +int jo_speak(const string msg) { string str = nullptr; const char *cmd = nullptr; @@ -22,5 +22,5 @@ jo_speak(const string msg) { str += msg; str += "\" | espeak"; cmd = str.c_str(); - system(cmd); + return system(cmd); } |