You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2005/05/16 01:02:30 UTC

svn commit: r170277 - in /httpd/apreq/trunk: glue/perl/xsbuilder/apreq_xs_postperl.h library/cookie.c

Author: joes
Date: Sun May 15 16:02:29 2005
New Revision: 170277

URL: http://svn.apache.org/viewcvs?rev=170277&view=rev
Log:
Simplify the code a bit while looking for the domain/path bug.

Modified:
    httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_postperl.h
    httpd/apreq/trunk/library/cookie.c

Modified: httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_postperl.h
URL: http://svn.apache.org/viewcvs/httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_postperl.h?rev=170277&r1=170276&r2=170277&view=diff
==============================================================================
--- httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_postperl.h (original)
+++ httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_postperl.h Sun May 15 16:02:29 2005
@@ -114,8 +114,9 @@
     SV *rv = sv_setref_pv(newSV(0), class, (void *)ptr);
     sv_magic(SvRV(rv), parent, PERL_MAGIC_ext, Nullch, 0);
     if (!sv_derived_from(rv, base))
-        croak("apreq_xs_object2sv failed: target class %s isn't derived from %s",
-              class, base);
+        Perl_croak(aTHX_ "apreq_xs_object2sv failed: "
+                   "target class %s isn't derived from %s",
+                   class, base);
     return rv;
 }
 

Modified: httpd/apreq/trunk/library/cookie.c
URL: http://svn.apache.org/viewcvs/httpd/apreq/trunk/library/cookie.c?rev=170277&r1=170276&r2=170277&view=diff
==============================================================================
--- httpd/apreq/trunk/library/cookie.c (original)
+++ httpd/apreq/trunk/library/cookie.c Sun May 15 16:02:29 2005
@@ -148,16 +148,15 @@
         memcpy(v->name, name, nlen);
     v->name[nlen] = 0;
     v->nlen = nlen;
-    /* session cookie is the default */
-    c->max_age = -1;
 
     c->path = NULL;
     c->domain = NULL;
     c->port = NULL;
-    c->flags = 0; 
-
     c->comment = NULL;
     c->commentURL = NULL;
+    c->max_age = -1;    /* session cookie is the default */
+    c->flags = 0; 
+
 
     return c;
 }