Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37725784
en ru br
ALT Linux repositórios
S:4.14.0-alt1
5.0: 4.0.4.1-alt9
4.1: 4.0.4.1-alt9
4.0: 4.0.4.1-alt8
3.0: 4.0.4.1-alt5

Group :: Sistema/Base
RPM: shadow

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: shadow-4.0.4.1-alt-xmalloc.patch
Download


--- shadow-4.0.4.1/libmisc/xmalloc.c.orig	2003-04-22 14:59:22 +0400
+++ shadow-4.0.4.1/libmisc/xmalloc.c	2005-01-16 01:30:56 +0300
@@ -12,14 +12,14 @@
 #include "rcsid.h"
 RCSID ("$Id: xmalloc.c,v 1.4 2003/04/22 10:59:22 kloczek Exp $")
 #include <stdio.h>
+#include <stdlib.h>
 #include "defines.h"
-extern char *malloc ();
 
 char *xmalloc (size_t size)
 {
 	char *ptr;
 
-	ptr = malloc (size);
+	ptr = (char *) malloc (size);
 	if (!ptr && size) {
 		fprintf (stderr, _("malloc(%d) failed\n"), (int) size);
 		exit (13);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009