Skip to content

Commit

Permalink
[Minor] Remove conditional msg_ macro from util.c
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed May 21, 2021
1 parent 1852e17 commit bafb84f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/libutil/util.c
Expand Up @@ -1059,9 +1059,6 @@ rspamd_file_lock (gint fd, gboolean async)
if (async && (errno == EAGAIN || errno == EACCES)) {
return FALSE;
}
if (errno != ENOTSUP) {
msg_warn ("lock on file failed: %s", strerror (errno));
}

return FALSE;
}
Expand All @@ -1084,9 +1081,6 @@ rspamd_file_unlock (gint fd, gboolean async)
return FALSE;
}

if (errno != ENOTSUP) {
msg_warn ("unlock on file failed: %s", strerror (errno));
}
return FALSE;
}

Expand Down Expand Up @@ -1924,9 +1918,11 @@ rspamd_file_xopen (const char *fname, int oflags, guint mode,
#endif

#ifndef HAVE_OCLOEXEC
int serrno;
if (fcntl (fd, F_SETFD, FD_CLOEXEC) == -1) {
msg_warn ("fcntl failed: %d, '%s'", errno, strerror (errno));
serrno = errno;
close (fd);
errno = serrno;

return -1;
}
Expand Down

0 comments on commit bafb84f

Please sign in to comment.