X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libraries%2Flibldap%2Fftest.c;h=eb4d4bb29c97dc233890ac6c021a2dd6b6e04616;hb=a5cad3f18a4b8fbbbb1bfc5db9d00022d9ebbfc4;hp=f8f96a5f30999b86cc6b343e916bb384faa21347;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap diff --git a/libraries/libldap/ftest.c b/libraries/libldap/ftest.c index f8f96a5f30..eb4d4bb29c 100644 --- a/libraries/libldap/ftest.c +++ b/libraries/libldap/ftest.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2010 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -25,6 +25,7 @@ #include #include "ldap_pvt.h" +#include "lber_pvt.h" #include "ldif.h" #include "lutil.h" @@ -37,7 +38,7 @@ int usage() { fprintf( stderr, "usage:\n" " ftest [-d n] filter\n" - " filter - RFC 2254 string representation of an " + " filter - RFC 4515 string representation of an " "LDAP search filter\n" ); return EXIT_FAILURE; } @@ -85,7 +86,7 @@ main( int argc, char *argv[] ) static int filter2ber( char *filter ) { int rc; - struct berval bv = {0, NULL}; + struct berval bv = BER_BVNULL; BerElement *ber; printf( "Filter: %s\n", filter );