blob: a17559b2b92cec1f903fecb462d9c0724084b489 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-cp,v 1.1 2005/05/29 14:38:33 wiz Exp $
--- progs/gluperf/gluperf.c.orig 1997-09-11 22:50:55.000000000 +0200
+++ progs/gluperf/gluperf.c
@@ -6,6 +6,7 @@
#include <sys/socket.h>
#include <string.h>
#include <math.h>
+#include <time.h>
#include "glib.h"
#include "glib_perf.h"
@@ -272,7 +273,7 @@ myGetHostByAddress (int address)
return name;
}
- name = malloc (strlen (tempHost->h_name) + 1); /* Size of name */
+ name = (char *)malloc (strlen (tempHost->h_name) + 1); /* Size of name */
if (name == NULL) {
fprintf (stderr, "ERROR: out of memory\n");
exit (1);
|