aboutsummaryrefslogtreecommitdiff
path: root/lock.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-10 15:30:45 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-10 15:30:45 -0400
commit0d9f550bb48f49c11bbf7220d74b9453731149c6 (patch)
tree58def83148c97ea4160c6bf00ee7a5c10033ec30 /lock.c
parentf8c8894291d1a14ad3870bc697b97cd9788c31ff (diff)
fuck errno
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lock.c b/lock.c
index 12d560b..68245ac 100644
--- a/lock.c
+++ b/lock.c
@@ -1,7 +1,5 @@
/* See LICENSE for licence details. */
-
#include <string.h>
-#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -30,7 +28,7 @@ int main(int argc, char **argv){
pathlen = argvlen + sizeof("/..") + 1;
path = malloc(pathlen);
if(path == NULL) {
- fprintf(stderr, "Error: %s\n", strerror(errno));
+ fprintf(stderr, "malloc() failed\n");
return EXIT_FAILURE;
}