summaryrefslogtreecommitdiff
path: root/sysutils/fam/patches/patch-be
blob: 8868cd40cd9e9cc2174878738ce9865ec2a25ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-be,v 1.1 2007/12/28 15:00:45 tron Exp $

--- src/Scheduler.c++.orig	2003-01-18 14:18:12.000000000 +0000
+++ src/Scheduler.c++	2007-12-28 14:57:21.000000000 +0000
@@ -309,7 +309,7 @@
 {
     if (fds)
 	for (int fd = 0; fd < nfds; fd++)
-	    if (FD_ISSET(fd, fds))
+	    if (FD_ISSET(fd, const_cast<fd_set *>(fds)))
 	    {   FDInfo *fp = &fdinfo[fd];
 		assert(iotype == &FDInfo::read || iotype == &FDInfo::write);
 		(fp->*iotype).handler(fd, (fp->*iotype).closure);