mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 08:44:32 +02:00
62 lines
1.8 KiB
Diff
62 lines
1.8 KiB
Diff
From: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
|
|
To: ~sircmpwn/public-inbox@lists.sr.ht
|
|
Subject: [PATCH powerctl] Update for hare stdlib changes
|
|
Patch-Source: https://lists.sr.ht/~sircmpwn/public-inbox/patches/57747
|
|
|
|
---
|
|
main.ha | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/main.ha b/main.ha
|
|
index cafaf37..105a2e2 100644
|
|
--- a/main.ha
|
|
+++ b/main.ha
|
|
@@ -44,7 +44,7 @@ export fn main() void = {
|
|
|
|
if (op == operation::QUERY) {
|
|
if (len(cmd.args) != 0) {
|
|
- getopt::printhelp(os::stderr, "powerctl", help...)!;
|
|
+ getopt::printhelp(os::stderr, "powerctl", help)!;
|
|
os::exit(1);
|
|
};
|
|
|
|
@@ -64,7 +64,7 @@ export fn main() void = {
|
|
};
|
|
|
|
if (len(cmd.args) != 1) {
|
|
- getopt::printhelp(os::stderr, "powerctl", help...)!;
|
|
+ getopt::printhelp(os::stderr, "powerctl", help)!;
|
|
os::exit(1);
|
|
};
|
|
|
|
@@ -76,7 +76,7 @@ export fn main() void = {
|
|
case let state: disk_state =>
|
|
yield state;
|
|
case errors::invalid =>
|
|
- getopt::printhelp(os::stderr, "powerctl", help...)!;
|
|
+ getopt::printhelp(os::stderr, "powerctl", help)!;
|
|
os::exit(1);
|
|
};
|
|
const result = set_disk_state(state);
|
|
@@ -95,7 +95,7 @@ export fn main() void = {
|
|
case let state: mem_state =>
|
|
yield state;
|
|
case errors::invalid =>
|
|
- getopt::printhelp(os::stderr, "powerctl", help...)!;
|
|
+ getopt::printhelp(os::stderr, "powerctl", help)!;
|
|
os::exit(1);
|
|
};
|
|
const result = set_mem_state(state);
|
|
@@ -105,7 +105,7 @@ export fn main() void = {
|
|
case let state: sleep_state =>
|
|
yield state;
|
|
case errors::invalid =>
|
|
- getopt::printhelp(os::stderr, "powerctl", help...)!;
|
|
+ getopt::printhelp(os::stderr, "powerctl", help)!;
|
|
os::exit(1);
|
|
};
|
|
const result = set_sleep_state(state);
|
|
--
|
|
2.48.1
|
|
|
|
|