# you better don't look inside
[m6w6/ext-http] / http_date_api.c
index 1ebef701e7eed4a2155024c2600d1ff7bdfa0dc9..91c16766aba994136783995584ccfcb27a77d341 100644 (file)
 #ifdef HAVE_CONFIG_H
 #      include "config.h"
 #endif
-#include "php.h"
 
 #include "php_http.h"
-#include "php_http_std_defs.h"
-
-#include <ctype.h>
+#include "php_http_date_api.h"
 
 static int check_day(char *day, size_t len);
 static int check_month(char *month);
@@ -147,7 +144,7 @@ PHP_HTTP_API char *_http_date(time_t t TSRMLS_DC)
 {
        struct tm *gmtime, tmbuf;
 
-       if (gmtime = php_gmtime_r(&t, &tmbuf)) {
+       if ((gmtime = php_gmtime_r(&t, &tmbuf))) {
                char *date = ecalloc(1, 31);
                snprintf(date, 30,
                        "%s, %02d %s %04d %02d:%02d:%02d GMT",