com php-src: Fixed warning implicit declaration of function 'file_printedlen': ext/fileinfo/libmagic.patch ex t/fileinfo/libmagic/file.h
| From: | Xinchen Hui | Date: | Sun, 22 Apr 2012 11:52:07 +0000 |
| Subject: | com php-src: Fixed warning implicit declaration of function 'file_printedlen': ext/fileinfo/libmagic.patch ex t/fileinfo/libmagic/file.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68853@lists.php.net to get a copy of this message | ||
Commit: f13b0ede0764f63762f105fb6c62de460f7b7490
Author: Xinchen Hui <laruence@php.net> Sun, 22 Apr 2012 19:52:07 +0800
Parents: c06e92a5334c15726901edbca112cfd0d38eec8d
Branches: PHP-5.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f13b0ede0764f63762f105fb6c62de460f7b7490
Log:
Fixed warning implicit declaration of function 'file_printedlen'
Changed paths:
M ext/fileinfo/libmagic.patch
M ext/fileinfo/libmagic/file.h
Diff:
diff --git a/ext/fileinfo/libmagic.patch b/ext/fileinfo/libmagic.patch
index 73e4826..baeac1d 100644
--- a/ext/fileinfo/libmagic.patch
+++ b/ext/fileinfo/libmagic.patch
@@ -1080,7 +1080,7 @@ diff -u libmagic.orig/compress.c libmagic/compress.c
+#endif /* if PHP_FILEINFO_UNCOMPRESS */
diff -u libmagic.orig/file.h libmagic/file.h
--- libmagic.orig/file.h 2012-04-22 19:30:43.186305188 +0800
-+++ libmagic/file.h 2012-04-22 19:28:57.378309534 +0800
++++ libmagic/file.h 2012-04-22 19:49:58.922256776 +0800
@@ -33,11 +33,9 @@
#ifndef __file_h__
#define __file_h__
@@ -1200,7 +1200,13 @@ diff -u libmagic.orig/file.h libmagic/file.h
protected void file_showstr(FILE *, const char *, size_t);
protected size_t file_mbswidth(const char *);
protected const char *file_getbuffer(struct magic_set *);
-@@ -443,11 +439,8 @@
+@@ -438,16 +434,14 @@
+ size_t *);
+ protected size_t file_pstring_length_size(const struct magic *);
+ protected size_t file_pstring_get_length(const struct magic *, const char *);
++protected size_t file_printedlen(const struct magic_set *ms);
+ #ifdef __EMX__
+ protected int file_os2_apptype(struct magic_set *, const char *, const void *,
size_t);
#endif /* __EMX__ */
@@ -1212,7 +1218,7 @@ diff -u libmagic.orig/file.h libmagic/file.h
#ifndef HAVE_STRERROR
extern int sys_nerr;
-@@ -460,17 +453,10 @@
+@@ -460,17 +454,10 @@
#define strtoul(a, b, c) strtol(a, b, c)
#endif
@@ -1232,7 +1238,7 @@ diff -u libmagic.orig/file.h libmagic/file.h
size_t strlcat(char *dst, const char *src, size_t siz);
#endif
#ifndef HAVE_GETLINE
-@@ -500,4 +486,12 @@
+@@ -500,4 +487,12 @@
#define FILE_RCSID(id)
#endif
diff --git a/ext/fileinfo/libmagic/file.h b/ext/fileinfo/libmagic/file.h
index e1269ae..3879b47 100644
--- a/ext/fileinfo/libmagic/file.h
+++ b/ext/fileinfo/libmagic/file.h
@@ -434,6 +434,7 @@ protected int file_looks_utf8(const unsigned char *, size_t, unichar *,
size_t *);
protected size_t file_pstring_length_size(const struct magic *);
protected size_t file_pstring_get_length(const struct magic *, const char *);
+protected size_t file_printedlen(const struct magic_set *ms);
#ifdef __EMX__
protected int file_os2_apptype(struct magic_set *, const char *, const void *,
size_t);