diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-10-18 21:56:45 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-10-18 21:56:45 +0000 |
commit | ac6d9f36c63ccc8a3946748ff92532495575da6d (patch) | |
tree | 3f9dfc6805aabf34c3c37cd266dfa31e6e1eb720 /lib/libevent/evutil.c | |
parent | 03058279357476cada6bbf8cb7c6e3bb5ca42675 (diff) |
Remove some #ifdef from libevent.
OK nicm@
Diffstat (limited to 'lib/libevent/evutil.c')
-rw-r--r-- | lib/libevent/evutil.c | 11 |
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 |