]> git.sur5r.net Git - openldap/commitdiff
mdb_strerror: Silence warning @ Windows
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 1 Dec 2014 07:59:29 +0000 (08:59 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 1 Dec 2014 07:59:29 +0000 (08:59 +0100)
libraries/liblmdb/mdb.c

index 69421c242dc9fbd250b1fb61a674d1709acddd40..6e9119d56ff9c5aedf1279a93ae827701a17b417 100644 (file)
@@ -1354,7 +1354,7 @@ mdb_strerror(int err)
        buf[0] = 0;
        FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
                FORMAT_MESSAGE_IGNORE_INSERTS,
-               NULL, err, 0, ptr, sizeof(buf), pad);
+               NULL, err, 0, ptr, sizeof(buf), (va_list *)pad);
        return ptr;
 #else
        return strerror(err);