diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-10 15:30:45 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-10 15:30:45 -0400 |
commit | 0d9f550bb48f49c11bbf7220d74b9453731149c6 (patch) | |
tree | 58def83148c97ea4160c6bf00ee7a5c10033ec30 /lock.c | |
parent | f8c8894291d1a14ad3870bc697b97cd9788c31ff (diff) |
fuck errno
Diffstat (limited to 'lock.c')
-rw-r--r-- | lock.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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;
}
|