]> git.sur5r.net Git - openldap/commitdiff
fix type format
authorPierangelo Masarati <ando@openldap.org>
Mon, 18 Dec 2006 08:20:43 +0000 (08:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 18 Dec 2006 08:20:43 +0000 (08:20 +0000)
clients/tools/common.c

index 9347c396c8db29e12e317afb6105abefed488260..9f51f49ebd25d063076424912ce1b5cfbfa0e529 100644 (file)
@@ -624,8 +624,8 @@ tool_args( int argc, char **argv )
                                        nettimeout.tv_sec = ival;
                                }
                                if( nettimeout.tv_sec < 0 || nettimeout.tv_sec > LDAP_MAXINT ) {
-                                       fprintf( stderr, _("%s: invalid network timeout (%d) specified\n"),
-                                               prog, nettimeout.tv_sec );
+                                       fprintf( stderr, _("%s: invalid network timeout (%ld) specified\n"),
+                                               prog, (long)nettimeout.tv_sec );
                                        exit( EXIT_FAILURE );
                                }
                        } else {
@@ -1038,8 +1038,8 @@ tool_conn_setup( int dont, void (*private_setup)( LDAP * ) )
                        if ( ldap_set_option( ld, LDAP_OPT_NETWORK_TIMEOUT, (void *) &nettimeout )
                                != LDAP_OPT_SUCCESS )
                        {
-                               fprintf( stderr, "Could not set LDAP_OPT_NETWORK_TIMEOUT %d\n",
-                                       nettimeout.tv_sec );
+                               fprintf( stderr, "Could not set LDAP_OPT_NETWORK_TIMEOUT %ld\n",
+                                       (long)nettimeout.tv_sec );
                                exit( EXIT_FAILURE );
                        }
                }