source: patches/module-init-tools-3.15-zlib_fix-1.patch@ 8545c9aa

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8545c9aa 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
  • module-init-tools-3.15

    Submitted By: Jonathan Norman (jonathan at bluesquarelinux dot co dot uk)
    Date: 2012-02-18
    Initial Package Version: 3.15
    Origin: Upstream
    Upstream Status: Applied
    Description: Patch to remove compiler warnings due to zlib 1.2.6
    
    diff -Naur module-init-tools-3.15.orig/testing.h module-init-tools-3.15/testing.h
    old new  
    227227
    228228#ifdef CONFIG_USE_ZLIB
    229229#include <zlib.h>
    230 static gzFile *modtest_gzopen(const char *path, const char *mode)
     230static gzFile modtest_gzopen(const char *path, const char *mode)
    231231__attribute__((unused));
    232232
    233 static gzFile *modtest_gzopen(const char *path, const char *mode)
     233static gzFile modtest_gzopen(const char *path, const char *mode)
    234234{
    235235        char path_buf[PATH_MAX];
    236236
  • module-init-tools-3.15

    diff -Naur module-init-tools-3.15.orig/zlibsupport.c module-init-tools-3.15/zlibsupport.c
    old new  
    2020#ifdef CONFIG_USE_ZLIB
    2121#include <zlib.h>
    2222
    23 void *grab_contents(gzFile *gzfd, unsigned long *size)
     23void *grab_contents(gzFile gzfd, unsigned long *size)
    2424{
    2525        unsigned int max = 16384;
    2626        void *buffer = NOFAIL(malloc(max));
Note: See TracBrowser for help on using the repository browser.