]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Slight modification to last commit to cast %ld args to long
authorKurt Zeilenga <kurt@openldap.org>
Wed, 20 Oct 1999 00:25:04 +0000 (00:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 20 Oct 1999 00:25:04 +0000 (00:25 +0000)
servers/slapd/connection.c

index 57a6280d82c51d35d166ffe2110e7fef9c276204..108c80a63f992ade71f2c249ce25db4bc52e4eea 100644 (file)
@@ -927,9 +927,10 @@ connection_input(
                        ber_pvt_sb_get_desc( conn->c_sb ), err, STRERROR(err) );
                Debug( LDAP_DEBUG_TRACE,
                        "\t*** got %ld of %lu so far\n",
-                       conn->c_currentber->ber_buf ?
-                       (long)(conn->c_currentber->ber_rwptr - conn->c_currentber->ber_buf) : 0,
-                       conn->c_currentber->ber_len, 0 );
+                       (long) ( conn->c_currentber->ber_buf
+                               ?  conn->c_currentber->ber_rwptr - conn->c_currentber->ber_buf
+                               : 0 ),
+                       (long) conn->c_currentber->ber_len, 0 );
 
                if ( err != EWOULDBLOCK && err != EAGAIN ) {
                        /* log, close and send error */