Репозитории ALT
S: | 4.14.0-alt1 |
5.1: | 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 |
Группа :: Система/Основа
Пакет: shadow
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: shadow-4.0.4.1-alt-xmalloc.patch
Скачать
Скачать
--- 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);