diff options
Diffstat (limited to 'japanese/kon2-16dot/files/patch-lib_mem.c')
| -rw-r--r-- | japanese/kon2-16dot/files/patch-lib_mem.c | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/japanese/kon2-16dot/files/patch-lib_mem.c b/japanese/kon2-16dot/files/patch-lib_mem.c index 8356f0f0bb9d..6a611ced9f8f 100644 --- a/japanese/kon2-16dot/files/patch-lib_mem.c +++ b/japanese/kon2-16dot/files/patch-lib_mem.c @@ -1,13 +1,23 @@ - --- lib/mem.c 30 Sep 2008 08:09:56 -0000 1.1.1.2 - +++ lib/mem.c 23 Oct 2008 09:24:33 -0000 - @@ -79,10 +79,3 @@ - } - #endif - - -void SafeFree(void **p) - -{ - - if (*p) { - - free(*p); - - *p = NULL; - - } - -} +--- lib/mem.c.orig 1997-01-25 18:11:55.000000000 +0900 ++++ lib/mem.c 2012-05-10 00:14:28.835551865 +0900 +@@ -44,6 +44,7 @@ + return(_rval); + } + ++#if 0 + void wzero(void *head, int n) + { + __asm__ ("cld\n\t" +@@ -76,11 +77,5 @@ + "S" ((long)src) + :"cx","di","si"); + } ++#endif + +-void SafeFree(void **p) +-{ +- if (*p) { +- free(*p); +- *p = NULL; +- } +-} |
