1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-aq,v 1.2 2005/09/08 13:19:56 cube Exp $
--- server/main.c.orig 2005-05-24 05:46:38.000000000 +0200
+++ server/main.c
@@ -203,7 +203,10 @@ cidr_match(struct sockaddr *sa, socklen_
char *p, *ep;
guchar *addr, *pat;
u_int32_t mask;
- int plen, i;
+ int plen;
+#if defined(INET6)
+ int i;
+#endif
gboolean result;
buf = g_strdup(allowed);
@@ -1062,7 +1065,7 @@ main(gint argc, gchar **argv)
{
client_fd = accept(server_fd,
(struct sockaddr *) &client_addr,
- (socklen_t *) &addr_len);
+ (socklen_t *) (void *)&addr_len);
if (client_fd == -1)
{
fprintf(stderr, "gkrellmd accept() failed: %s\n",
|