From 3b994f54899e526fa9e86121ce9efb6ca299d629 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 4 Dec 2019 00:02:42 +0100 Subject: .gitignore C++ update, doing some debug --- src/jo_notify.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jo_notify.cpp') 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 -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); } -- cgit v1.2.3