Branch: Tag:

2005-03-10

2005-03-10 19:23:02 by Martin Stjernholm <mast@lysator.liu.se>

Some trivial fixes.

Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.75
Rev: lib/modules/Protocols.pmod/LDAP.pmod/ldap_globals.h:1.13

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.74 2005/03/10 19:10:55 mast Exp $ + // $Id: client.pike,v 1.75 2005/03/10 19:23:02 mast Exp $   //   // Honza Petrous, hop@unibase.cz   //
114:    }      static function(string:string) get_attr_decoder (string attr, - #ifdef DEBUG -  void|int nowarn - #endif -  ) +  DO_IF_DEBUG (void|int nowarn))   {    if (mapping(string:mixed) attr_descr = get_attr_type_descr (attr)) {    if (function(string:string) decoder =
457: Inside #if undefined(PARSE_RFCS)
   void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.74 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.75 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;
997:    // they haven't bothered to include in their schema. Send    // the nowarn flag to get_attr_encoder to avoid complaints    // about that. -  if (function(string:string) decoder = get_attr_decoder (attr, - #ifdef DEBUG -  1 - #endif -  )) +  if (function(string:string) decoder = +  get_attr_decoder (attr, DO_IF_DEBUG (1)))    root_dse[attr] = map (root_dse[attr], decoder);    });    }