aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}