On 4/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> --- httpd/mod_smtpd/trunk/src/smtp_util.c (original)
> +++ httpd/mod_smtpd/trunk/src/smtp_util.c Mon Apr  3 09:40:17 2006
> @@ -76,15 +76,17 @@
>      smtpd_run_on_reset_envelope(scr);
>      smtpd_clear_envelope_rec(scr);
>  }
> -
> +#if 0
>  #include <netinet/in.h>
>  #include <arpa/nameser.h>
>  #include <resolv.h>
> +#endif
>
>  SMTPD_DECLARE_NONSTD(apr_status_t)
>  smtpd_get_mailex(apr_pool_t *pool, /* out */ char **resolved_host,
>                   char *original_host)
>  {
> +#if 0
>      /* res_search hack, too dependent */
>      unsigned char buf[NS_PACKETSZ];
>      ns_msg handle;
> @@ -130,6 +132,8 @@
>                         ns_rr_rdata(rr) + 2,
>                         *resolved_host,
>                         MAXDNAME);
> +#endif
> +    *resolved_host = apr_pstrdup(pool, original_host);
>
>      return APR_SUCCESS;
>  }

If you must #if 0 out code like this, at least leave some indication
of why it's been done.  Ideally though, I'd suggest just removing it,
you can always get it back from the subversion repository if you need
it again later.

-garrett

Reply via email to