aboutsummaryrefslogtreecommitdiff
path: root/src/hotkey.c
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2017-09-12 12:43:38 +0200
committerkoekeishiya <aasvi93@hotmail.com>2017-09-12 12:43:38 +0200
commit07f864c03ecdfbbc761cdfa8cf54321ba17bec47 (patch)
tree1275e554d48a3e43877843340b9f03cc763932a8 /src/hotkey.c
parent1723966a65c5fd591aca85ed427e53674bae056e (diff)
downloadskhd-07f864c03ecdfbbc761cdfa8cf54321ba17bec47.tar.gz
skhd-07f864c03ecdfbbc761cdfa8cf54321ba17bec47.zip
code cleanup
Diffstat (limited to 'src/hotkey.c')
-rw-r--r--src/hotkey.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/hotkey.c b/src/hotkey.c
index cdf8de1..9e99064 100644
--- a/src/hotkey.c
+++ b/src/hotkey.c
@@ -13,15 +13,13 @@ fork_and_exec(char *command)
{
local_persist char arg[] = "-c";
local_persist char *shell = NULL;
- if(!shell)
- {
+ if(!shell) {
char *env_shell = getenv("SHELL");
shell = env_shell ? env_shell : "/bin/bash";
}
int cpid = fork();
- if(cpid == 0)
- {
+ if(cpid == 0) {
char *exec[] = { shell, arg, command, NULL};
int status_code = execvp(exec[0], exec);
exit(status_code);