Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37754512
en ru br
ALT Linux repos
S:1.1.0-alt4
5.0: 1.0.1-alt1
4.1: 1.0.1-alt1
4.0: 1.0.1-alt1

Group :: System/X11
RPM: liblbxutil

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: liblbxutil-1.1.0-alt-Xalloc.patch
Download


diff -ur liblbxutil-1.1.0.old/src/delta/lbxdelta.c liblbxutil-1.1.0/src/delta/lbxdelta.c
--- liblbxutil-1.1.0.old/src/delta/lbxdelta.c	2013-02-14 11:28:14.000000000 +0000
+++ liblbxutil-1.1.0/src/delta/lbxdelta.c	2013-02-14 11:41:25.008256946 +0000
@@ -49,10 +49,9 @@
 #define _HAVE_XALLOC_DECLS
 #include <X11/Xdefs.h>
 
-extern pointer Xalloc(unsigned long /*amount*/);
-extern pointer Xcalloc(unsigned long /*amount*/);
-extern pointer Xrealloc(pointer /*ptr*/, unsigned long /*amount*/);
-extern void Xfree(pointer /*ptr*/);
+#include <stdlib.h>
+#define Xalloc(p) (malloc(p))
+#define Xfree(p) (free(p))
 #endif
 
 /*
diff -ur liblbxutil-1.1.0.old/src/lbx_zlib/lbx_zlib.h liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h
--- liblbxutil-1.1.0.old/src/lbx_zlib/lbx_zlib.h	2013-02-14 11:28:14.000000000 +0000
+++ liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h	2013-02-14 11:40:28.245793774 +0000
@@ -129,10 +129,9 @@
 #define _HAVE_XALLOC_DECLS
 #include <X11/Xdefs.h>
 
-extern pointer Xalloc(unsigned long /*amount*/);
-extern pointer Xcalloc(unsigned long /*amount*/);
-extern pointer Xrealloc(pointer /*ptr*/, unsigned long /*amount*/);
-extern void Xfree(pointer /*ptr*/);
+#include <stdlib.h>
+#define Xalloc(p) (malloc(p))
+#define Xfree(p) (free(p))
 #endif
 
 /* lbx_zlib.c */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin