]> granicus.if.org Git - php/commitdiff
Fixed bug #60094 (C++ comment fails in c89)
authorXinchen Hui <laruence@php.net>
Wed, 19 Oct 2011 15:08:50 +0000 (15:08 +0000)
committerXinchen Hui <laruence@php.net>
Wed, 19 Oct 2011 15:08:50 +0000 (15:08 +0000)
ext/fileinfo/libmagic.patch
ext/fileinfo/libmagic/cdf_time.c

index 2e791f37a304f3014f50cb3d7e352609c4dd90a0..3b99ce5dcfb3f1fe0d87707480a58b374310bf8d 100644 (file)
@@ -853,7 +853,7 @@ diff -u libmagic.orig/cdf.h libmagic/cdf.h
  void cdf_unpack_header(cdf_header_t *, char *);
 diff -u libmagic.orig/cdf_time.c libmagic/cdf_time.c
 --- libmagic.orig/cdf_time.c   2011-09-15 23:28:13.000000000 +0800
-+++ libmagic/cdf_time.c        2011-09-15 23:28:26.000000000 +0800
++++ libmagic/cdf_time.c        2011-10-19 22:51:40.000000000 +0800
 @@ -96,7 +96,7 @@
  }
  
@@ -874,6 +874,15 @@ diff -u libmagic.orig/cdf_time.c libmagic/cdf_time.c
  
        t /= CDF_TIME_PREC;
        tm.tm_sec = t % 60;
+@@ -117,7 +117,7 @@
+       tm.tm_hour = t % 24;
+       t /= 24;
+-      // XXX: Approx
++      /* XXX: Approx */
+       tm.tm_year = CDF_BASE_YEAR + (t / 365);
+       rdays = cdf_getdays(tm.tm_year);
 @@ -143,7 +143,7 @@
  }
  
index 36372966a78b5d69744c2b59611ad26f6ef88f01..750c5986a0b54580104a379d896a123794354088 100644 (file)
@@ -117,7 +117,7 @@ cdf_timestamp_to_timespec(struct timeval *ts, cdf_timestamp_t t)
        tm.tm_hour = t % 24;
        t /= 24;
 
-       // XXX: Approx
+       /* XXX: Approx */
        tm.tm_year = CDF_BASE_YEAR + (t / 365);
 
        rdays = cdf_getdays(tm.tm_year);