aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/kill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/toys/posix/kill.c b/toys/posix/kill.c
index ee68980b..c9de98ea 100644
--- a/toys/posix/kill.c
+++ b/toys/posix/kill.c
@@ -41,6 +41,7 @@ config KILLALL5
// This has to match the filename:
#define FOR_kill
+#define FORCE_FLAGS
#include "toys.h"
GLOBALS(
@@ -61,7 +62,7 @@ void kill_main(void)
pid_t pid;
// list signal(s)
- if (toys.optflags & FLAG_l) {
+ if (FLAG(l)) {
if (*args) {
int signum = sig_to_num(*args);
char *s = NULL;
@@ -94,7 +95,7 @@ void kill_main(void)
long *olist = 0, ocount = 0;
// parse omit list
- if (toys.optflags & FLAG_o) {
+ if (FLAG(o)) {
struct arg_list *ptr;
for (ptr = TT.o; ptr; ptr = ptr->next) ocount++;