X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_date_api.c;h=91c16766aba994136783995584ccfcb27a77d341;hp=1ebef701e7eed4a2155024c2600d1ff7bdfa0dc9;hb=f2d0dbf38d7b00455d3dfba8f2de087105ae0f35;hpb=e83a7438dc70ed96630887246a1d3aefcf155b1c diff --git a/http_date_api.c b/http_date_api.c index 1ebef70..91c1676 100644 --- a/http_date_api.c +++ b/http_date_api.c @@ -15,12 +15,9 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif -#include "php.h" #include "php_http.h" -#include "php_http_std_defs.h" - -#include +#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",