From 36af6ff6b0249d0fb98b2c16c2ab8755e9394214 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 28 Sep 2015 23:39:31 +0300 Subject: [PATCH] lib: s/EDEADLOCK/EDEADLK/ It felt wrong since the beginning, but my first attempt at EDEADLCK didn't work and EDEADLOCK did. Of course, not everywhere. --- src/lib/file-lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/file-lock.c b/src/lib/file-lock.c index 82bcf261fe..1498e88a97 100644 --- a/src/lib/file-lock.c +++ b/src/lib/file-lock.c @@ -211,7 +211,7 @@ static int file_lock_do(int fd, const char *path, int lock_type, } *error_r = t_strdup_printf("fcntl(%s, %s, %s) locking failed: %m", path, lock_type_str, timeout_secs == 0 ? "F_SETLK" : "F_SETLKW"); - if (errno == EDEADLOCK) + if (errno == EDEADLK) i_panic("%s%s", *error_r, file_lock_find(fd, lock_method, lock_type)); return -1; #endif @@ -259,7 +259,7 @@ static int file_lock_do(int fd, const char *path, int lock_type, } *error_r = t_strdup_printf("flock(%s, %s) failed: %m", path, lock_type_str); - if (errno == EDEADLOCK) + if (errno == EDEADLK) i_panic("%s%s", *error_r, file_lock_find(fd, lock_method, lock_type)); return -1; #endif -- 2.47.3