]> 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 19:17:27 +0000 (20:17 +0100)
libraries/liblmdb/mdb.c

index e0c854c60a79b33c8d4d83c35e58a08d5bd8bcde..efb5689ca1a85ca0ad62932605e58ebd8c64ad64 100644 (file)
@@ -1316,7 +1316,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);