httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r170277 - in /httpd/apreq/trunk: glue/perl/xsbuilder/apreq_xs_postperl.h library/cookie.c
Date Sun, 15 May 2005 23:02:30 GMT
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;
 }



Mime
View raw message