[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-dev
Subject:    Re: [PATCH] Apache 2.0 and NetWare - compatibility issue (next try)
From:       Pavel Novy <novy () feld ! cvut ! cz>
Date:       2001-11-23 17:20:29
[Download RAW message or body]

> --- apr_uri.c.orig	Sun Aug 19 18:17:42 2001
> +++ apr_uri.c	Fri Nov 23 00:00:57 2001
> @@ -230,7 +230,7 @@
>       * can be called more than once per request.
>       */
>      memset (uptr, '\0', sizeof(*uptr));
> -    uptr->is_initialized = 1;
> +    uptr->flags = APR_URI_FLAG_IS_INITIALIZED;
>  
>      /* We assume the processor has a branch predictor like most --
>       * it assumes forward branches are untaken and backwards are taken.  That's
> @@ -353,7 +353,7 @@
>       * can be called more than once per request.
>       */
>      memset (uptr, '\0', sizeof(*uptr));
> -    uptr->is_initialized = 1;
> +    uptr->is_initialized = APR_URI_FLAG_IS_INITIALIZED;
>      uptr->hostinfo = apr_pstrdup(p, hostinfo);
>  
>      /* We expect hostinfo to point to the first character of
> 

Sorry, forgot to change variable name in apr_uri.c.patch file. Corrected 
patch attached.

Pavel


["apr_uri.c.patch" (text/plain)]

--- apr_uri.c.orig	Sun Aug 19 19:17:42 2001
+++ apr_uri.c	Fri Nov 23 18:36:19 2001
@@ -230,7 +230,7 @@
      * can be called more than once per request.
      */
     memset (uptr, '\0', sizeof(*uptr));
-    uptr->is_initialized = 1;
+    uptr->flags = APR_URI_FLAG_IS_INITIALIZED;
 
     /* We assume the processor has a branch predictor like most --
      * it assumes forward branches are untaken and backwards are taken.  That's
@@ -353,7 +353,7 @@
      * can be called more than once per request.
      */
     memset (uptr, '\0', sizeof(*uptr));
-    uptr->is_initialized = 1;
+    uptr->flags = APR_URI_FLAG_IS_INITIALIZED;
     uptr->hostinfo = apr_pstrdup(p, hostinfo);
 
     /* We expect hostinfo to point to the first character of


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic