clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 54d07d2f was 8ac1263, checked in by Jonathan Norman <jon@…>, 13 years ago |
Added a patch to module-init-tools to remove warnings caused by Zlib
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[8ac1263] | 1 | Submitted By: Jonathan Norman (jonathan at bluesquarelinux dot co dot uk)
|
---|
| 2 | Date: 2012-02-18
|
---|
| 3 | Initial Package Version: 3.15
|
---|
| 4 | Origin: Upstream
|
---|
| 5 | Upstream Status: Applied
|
---|
| 6 | Description: Patch to remove compiler warnings due to zlib 1.2.6
|
---|
| 7 |
|
---|
| 8 | diff -Naur module-init-tools-3.15.orig/testing.h module-init-tools-3.15/testing.h
|
---|
| 9 | --- module-init-tools-3.15.orig/testing.h 2012-02-18 20:57:59.840327374 +0000
|
---|
| 10 | +++ module-init-tools-3.15/testing.h 2012-02-18 21:08:00.648317561 +0000
|
---|
| 11 | @@ -227,10 +227,10 @@
|
---|
| 12 |
|
---|
| 13 | #ifdef CONFIG_USE_ZLIB
|
---|
| 14 | #include <zlib.h>
|
---|
| 15 | -static gzFile *modtest_gzopen(const char *path, const char *mode)
|
---|
| 16 | +static gzFile modtest_gzopen(const char *path, const char *mode)
|
---|
| 17 | __attribute__((unused));
|
---|
| 18 |
|
---|
| 19 | -static gzFile *modtest_gzopen(const char *path, const char *mode)
|
---|
| 20 | +static gzFile modtest_gzopen(const char *path, const char *mode)
|
---|
| 21 | {
|
---|
| 22 | char path_buf[PATH_MAX];
|
---|
| 23 |
|
---|
| 24 | diff -Naur module-init-tools-3.15.orig/zlibsupport.c module-init-tools-3.15/zlibsupport.c
|
---|
| 25 | --- module-init-tools-3.15.orig/zlibsupport.c 2012-02-18 20:57:59.840327374 +0000
|
---|
| 26 | +++ module-init-tools-3.15/zlibsupport.c 2012-02-18 21:04:31.666754857 +0000
|
---|
| 27 | @@ -20,7 +20,7 @@
|
---|
| 28 | #ifdef CONFIG_USE_ZLIB
|
---|
| 29 | #include <zlib.h>
|
---|
| 30 |
|
---|
| 31 | -void *grab_contents(gzFile *gzfd, unsigned long *size)
|
---|
| 32 | +void *grab_contents(gzFile gzfd, unsigned long *size)
|
---|
| 33 | {
|
---|
| 34 | unsigned int max = 16384;
|
---|
| 35 | void *buffer = NOFAIL(malloc(max));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.