iliaa Fri Jul 8 12:06:08 2005 EDT Modified files: /php-src/ext/standard head.c Log: Fixed compiler warning. http://cvs.php.net/diff.php/php-src/ext/standard/head.c?r1=1.80&r2=1.81&ty=u Index: php-src/ext/standard/head.c diff -u php-src/ext/standard/head.c:1.80 php-src/ext/standard/head.c:1.81 --- php-src/ext/standard/head.c:1.80 Fri Jul 8 08:39:51 2005 +++ php-src/ext/standard/head.c Fri Jul 8 12:06:05 2005 @@ -15,7 +15,7 @@ | Author: Rasmus Lerdorf <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: head.c,v 1.80 2005/07/08 12:39:51 tony2001 Exp $ */ +/* $Id: head.c,v 1.81 2005/07/08 16:06:05 iliaa Exp $ */ #include <stdio.h> #include "php.h" @@ -64,7 +64,6 @@ { char *cookie, *encoded_value = NULL; int len=sizeof("Set-Cookie: "); - time_t t; char *dt; sapi_header_line ctr = {0}; int result; @@ -103,7 +102,7 @@ * so in order to force cookies to be deleted, even on MSIE, we * pick an expiry date 1 year and 1 second in the past */ - t = time(NULL) - 31536001; + time_t t = time(NULL) - 31536001; dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0); sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s", name, dt); efree(dt);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php