diff options
author | Squibid <me@zacharyscheiman.com> | 2024-02-22 00:01:44 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-02-22 00:01:44 -0500 |
commit | edf61ca3c01bc30f7cf2b8153a981ddc811f165f (patch) | |
tree | 5600577cf88dd9fa7e1b8c61b5bc4695e8cc9470 | |
parent | f6475ab4cee0b824a6cc48bfc8f59bb5238df1d8 (diff) | |
download | wiz-edf61ca3c01bc30f7cf2b8153a981ddc811f165f.tar.gz wiz-edf61ca3c01bc30f7cf2b8153a981ddc811f165f.tar.bz2 wiz-edf61ca3c01bc30f7cf2b8153a981ddc811f165f.zip |
replace stray '\t's with spaces
Diffstat (limited to '')
-rw-r--r-- | wiz.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -75,20 +75,20 @@ static const struct wl_registry_listener reglistener = { static void idling(void *data, struct ext_idle_notification_v1 *notif) { - struct Events *event = data; + struct Events *event = data; run(event->idlecmd); } static void resuming(void *data, struct ext_idle_notification_v1 *notif) { - struct Events *event = data; + struct Events *event = data; run(event->resumecmd); } static const struct ext_idle_notification_v1_listener idlelistener = { - .idled = idling, - .resumed = resuming, + .idled = idling, + .resumed = resuming, }; static void @@ -97,12 +97,12 @@ run(char **cmd) waitpid(-1, NULL, WNOHANG); if (killchild && cpid) kill(cpid, SIGINT); - if ((cpid = fork()) == 0) { - dup2(STDERR_FILENO, STDOUT_FILENO); - setsid(); - execvp(cmd[0], cmd); - die("execvp failed:"); - } + if ((cpid = fork()) == 0) { + dup2(STDERR_FILENO, STDOUT_FILENO); + setsid(); + execvp(cmd[0], cmd); + die("execvp failed:"); + } } int @@ -140,7 +140,7 @@ main(int argc, char *argv[]) } wl_display_roundtrip(display); - while (wl_display_dispatch(display) != -1); + while (wl_display_dispatch(display) != -1); ext_idle_notifier_v1_destroy(notifier); wl_registry_destroy(registry); |