From ca35711c9930ba2194fc69865b856c08e35345cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 30 Jan 2008 22:13:30 +0000 Subject: [PATCH] - outdated Changed files: rpm-missing-prototypes.patch -> 1.4 rpm-reduce-stack-usage.patch -> 1.3 --- rpm-missing-prototypes.patch | 22 --------------------- rpm-reduce-stack-usage.patch | 38 ------------------------------------ 2 files changed, 60 deletions(-) delete mode 100644 rpm-missing-prototypes.patch delete mode 100644 rpm-reduce-stack-usage.patch diff --git a/rpm-missing-prototypes.patch b/rpm-missing-prototypes.patch deleted file mode 100644 index fae8c4d..0000000 --- a/rpm-missing-prototypes.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- rpm-4.3/lib/rpmfi.c.orig 2004-01-12 09:39:32.000000000 +0000 -+++ rpm-4.3/lib/rpmfi.c 2004-01-12 10:34:20.000000000 +0000 -@@ -13,6 +13,8 @@ - - #include "rpmds.h" - -+#include "legacy.h" -+ - #define _RPMFI_INTERNAL - #include "rpmfi.h" - ---- rpm-4.3/lib/rpmrc.c.orig 2004-01-12 09:39:32.000000000 +0000 -+++ rpm-4.3/lib/rpmrc.c 2004-01-12 10:54:42.000000000 +0000 -@@ -14,6 +14,7 @@ - #define __power_pc() 0 - #endif - -+#include "rpmio_internal.h" - #include - #include - #include - diff --git a/rpm-reduce-stack-usage.patch b/rpm-reduce-stack-usage.patch deleted file mode 100644 index 7ba0265..0000000 --- a/rpm-reduce-stack-usage.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- rpm-4.4.8/rpmio/macro.c.orig 2007-01-21 21:37:58.000000000 +0100 -+++ rpm-4.4.8/rpmio/macro.c 2007-04-08 19:50:49.214644921 +0200 -@@ -942,7 +942,8 @@ - /*@globals rpmGlobalMacroContext @*/ - /*@modifies mb, rpmGlobalMacroContext @*/ - { -- char buf[BUFSIZ], *b, *be; -+ static char buf[BUFSIZ]; -+ char *b, *be; - char aname[16]; - const char *opts, *o; - int argc = 0; -@@ -1850,7 +1851,7 @@ - return 0; - if (mc == NULL) mc = rpmGlobalMacroContext; - -- tbuf = alloca(slen + 1); -+ tbuf = xmalloc(slen + 1); - memset(tbuf, 0, (slen + 1)); - - mb->s = sbuf; -@@ -1870,6 +1871,7 @@ - rpmError(RPMERR_BADSPEC, _("Macro expansion too big for target buffer\n")); - else - strncpy(sbuf, tbuf, (slen - mb->nb + 1)); -+ free(tbuf); - - return rc; - } -@@ -2308,7 +2310,7 @@ - const char * - rpmGetPath(const char *path, ...) - { -- char buf[BUFSIZ]; -+ static char buf[BUFSIZ]; - const char * s; - char * t, * te; - va_list ap; -- 2.43.0