summaryrefslogtreecommitdiff
path: root/lib/libevent/evutil.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2014-10-18 21:56:45 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2014-10-18 21:56:45 +0000
commitac6d9f36c63ccc8a3946748ff92532495575da6d (patch)
tree3f9dfc6805aabf34c3c37cd266dfa31e6e1eb720 /lib/libevent/evutil.c
parent03058279357476cada6bbf8cb7c6e3bb5ca42675 (diff)
Remove some #ifdef from libevent.
OK nicm@
Diffstat (limited to 'lib/libevent/evutil.c')
-rw-r--r--lib/libevent/evutil.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/libevent/evutil.c b/lib/libevent/evutil.c
index 4fd3a06baa1..5180230f075 100644
--- a/lib/libevent/evutil.c
+++ b/lib/libevent/evutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evutil.c,v 1.8 2014/10/18 16:48:28 bluhm Exp $ */
+/* $OpenBSD: evutil.c,v 1.9 2014/10/18 21:56:44 bluhm Exp $ */
/*
* Copyright (c) 2007 Niels Provos <provos@citi.umich.edu>
@@ -85,18 +85,9 @@ evutil_snprintf(char *buf, size_t buflen, const char *format, ...)
int
evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap)
{
-#ifdef _MSC_VER
- int r = _vsnprintf(buf, buflen, format, ap);
- buf[buflen-1] = '\0';
- if (r >= 0)
- return r;
- else
- return _vscprintf(format, ap);
-#else
int r = vsnprintf(buf, buflen, format, ap);
buf[buflen-1] = '\0';
return r;
-#endif
}
static int