diff options
| author | onelin <oscar@nelin.dk> | 2026-05-02 15:43:41 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2026-05-02 15:43:41 +0000 |
| commit | 3cf48f65cd78135b237bc4f562e0a0ea1e0d013d (patch) | |
| tree | b614be333dc013ad3f22f947ce664fb52704db18 /status_ctl.c | |
| parent | 56f5db0e3b52aa7dd9d975f46221dfaf8aca4b46 (diff) | |
Diffstat (limited to 'status_ctl.c')
| -rw-r--r-- | status_ctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/status_ctl.c b/status_ctl.c index 0016b93..a3710b5 100644 --- a/status_ctl.c +++ b/status_ctl.c @@ -23,9 +23,9 @@ main(int argc, char* argv[]) { errx(EXIT_FAILURE, "Invalid action\n"); } -#define ELEMENT(name, _arg, _minutes, _seconds) \ - else if (!strcmp(argv[2], #name)) { \ - msg.element = ELEMENT_##name; \ +#define ELEMENT(identifier, _function, _arg, _minutes, _seconds) \ + else if (!strcmp(argv[2], #identifier)) { \ + msg.element = ELEMENT_##identifier; \ } if (!strcmp(argv[2], "all")) { |
