aboutsummaryrefslogtreecommitdiff
path: root/bin/zzz.c
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-01 17:34:46 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-01 17:34:46 -0500
commitb893c2547d4ea73247f1ed5b1934187eb2c7d372 (patch)
treeb0f5b6d92ba1ad17c32e202c767461d52865275c /bin/zzz.c
parentd5142521687097211683e15e178d120ccf26d66b (diff)
downloaddotfiles-b893c2547d4ea73247f1ed5b1934187eb2c7d372.tar.gz
dotfiles-b893c2547d4ea73247f1ed5b1934187eb2c7d372.tar.xz
Clean up the C programs a touch
Diffstat (limited to 'bin/zzz.c')
-rw-r--r--bin/zzz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/zzz.c b/bin/zzz.c
index 2170c78..ad2ef6c 100644
--- a/bin/zzz.c
+++ b/bin/zzz.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
+#include <sys/types.h>
#define POWER_STATE_F "/sys/power/state"
@@ -77,7 +78,7 @@ main(int argc, char **argv)
if (ret == -1)
err("setgid");
- ret = execlp(lockProg, lockProg);
+ execlp(lockProg, lockProg);
err("execlp");
default:
suspend();