summaryrefslogtreecommitdiff
path: root/ff2pam.c
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2018-04-11 12:48:50 +0200
committerLaslo Hunhold <dev@frign.de>2018-04-11 12:48:50 +0200
commitd9c382a9d873c8758f518c6aa7e6c32cf3ea7b89 (patch)
tree9672252ec27b8c76bfe502669c3b182a4a6f8c1b /ff2pam.c
parenta2e07745e6e31231dd59bd1d4a3415a5f4042d0c (diff)
Add warn() and die()
To fully centralize this matter these well-tested functions are added to the util.c, and implemented as we know it from many other suckless projects.
Diffstat (limited to 'ff2pam.c')
-rw-r--r--ff2pam.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ff2pam.c b/ff2pam.c
index de96bbe..fca5c6f 100644
--- a/ff2pam.c
+++ b/ff2pam.c
@@ -14,8 +14,7 @@
static void
usage(void)
{
- fprintf(stderr, "usage: %s\n", argv0);
- exit(1);
+ die("usage: %s", argv0);
}
int