comparison modules/ldap/eldap.c @ 4824:c12b646d84ee

changes to get things to compile under latest cygwin
author Ben Wing <ben@xemacs.org>
date Thu, 24 Dec 2009 19:45:23 -0600
parents 3a87551bfeb5
children 19a72041c5ed d877c14318b3
comparison
equal deleted inserted replaced
4785:d6cfba1cc388 4824:c12b646d84ee
495 495
496 /* Attributes only ? */ 496 /* Attributes only ? */
497 CHECK_SYMBOL (attrsonly); 497 CHECK_SYMBOL (attrsonly);
498 498
499 /* Perform the search */ 499 /* Perform the search */
500 bs = NILP (base) ? "" : NEW_LISP_STRING_TO_EXTERNAL (base, Qnative); 500 bs = NILP (base) ? (Extbyte *) "" :
501 filt = NILP (filter) ? "" : NEW_LISP_STRING_TO_EXTERNAL (filter, Qnative); 501 NEW_LISP_STRING_TO_EXTERNAL (base, Qnative);
502 filt = NILP (filter) ? (Extbyte *) "" :
503 NEW_LISP_STRING_TO_EXTERNAL (filter, Qnative);
502 if (ldap_search (ld, bs, ldap_scope, filt, ldap_attributes, 504 if (ldap_search (ld, bs, ldap_scope, filt, ldap_attributes,
503 NILP (attrsonly) ? 0 : 1) 505 NILP (attrsonly) ? 0 : 1)
504 == -1) 506 == -1)
505 { 507 {
506 signal_ldap_error (ld, NULL, 0); 508 signal_ldap_error (ld, NULL, 0);