1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-17 03:46:35 +01:00

stderr redirect doesn't work as intended, add invalid command message when no sound

This commit is contained in:
Jfreegman
2014-08-03 01:31:33 -04:00
parent 53663a7832
commit 3fc7c90630
4 changed files with 7 additions and 11 deletions

View File

@@ -705,12 +705,6 @@ int main(int argc, char *argv[])
useconds_t msleepval = 40000;
uint64_t loopcount = 0;
/* Redirect stdout to /dev/null
* NOTE: Might not be best solution
*/
freopen("/dev/null", "w", stderr);
while (true) {
update_unix_time();
do_toxic(m, prompt);