summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-04-19 12:22:37 +0000
committerderaadt <deraadt@openbsd.org>2014-04-19 12:22:37 +0000
commit461831dd50ee6b7d7fc8d428401235f72bb1ff1e (patch)
tree57d55cb8cdb455da7cbb72362863ad96d8f419b8 /lib/libssl/src
parentremove very questionable altq "optimization" - claudio and I can't (diff)
downloadwireguard-openbsd-461831dd50ee6b7d7fc8d428401235f72bb1ff1e.tar.xz
wireguard-openbsd-461831dd50ee6b7d7fc8d428401235f72bb1ff1e.zip
unifdef ENOTDIR, everyone has it
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/apps/apps.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/libssl/src/apps/apps.c b/lib/libssl/src/apps/apps.c
index 9a731fe75bc..2035d513738 100644
--- a/lib/libssl/src/apps/apps.c
+++ b/lib/libssl/src/apps/apps.c
@@ -1503,11 +1503,7 @@ rotate_serial(char *serialfile, char *new_suffix, char *old_suffix)
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
serialfile, buf[1]);
#endif
- if (rename(serialfile, buf[1]) < 0 && errno != ENOENT
-#ifdef ENOTDIR
- && errno != ENOTDIR
-#endif
- ) {
+ if (rename(serialfile, buf[1]) < 0 && errno != ENOENT && errno != ENOTDIR) {
BIO_printf(bio_err,
"unable to rename %s to %s\n",
serialfile, buf[1]);
@@ -1723,11 +1719,7 @@ rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix)
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
dbfile, buf[1]);
#endif
- if (rename(dbfile, buf[1]) < 0 && errno != ENOENT
-#ifdef ENOTDIR
- && errno != ENOTDIR
-#endif
- ) {
+ if (rename(dbfile, buf[1]) < 0 && errno != ENOENT && errno != ENOTDIR) {
BIO_printf(bio_err,
"unable to rename %s to %s\n",
dbfile, buf[1]);
@@ -1750,11 +1742,7 @@ rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix)
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
buf[4], buf[3]);
#endif
- if (rename(buf[4], buf[3]) < 0 && errno != ENOENT
-#ifdef ENOTDIR
- && errno != ENOTDIR
-#endif
- ) {
+ if (rename(buf[4], buf[3]) < 0 && errno != ENOENT && errno != ENOTDIR) {
BIO_printf(bio_err,
"unable to rename %s to %s\n",
buf[4], buf[3]);