summaryrefslogtreecommitdiff
path: root/sysutils/bkpupsd/patches/patch-ac
blob: b85b350bfdc855fe70275f3f561fe647797b1f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.2 2005/01/04 13:37:31 taca Exp $

--- src/ups.c.orig	2003-01-21 20:49:06.000000000 +0900
+++ src/ups.c
@@ -99,7 +99,7 @@ ups_new(name, device, timeout, grace)
 	UPS ups;
 	char *s, *how;
 
-	if (cgetent(&ups_cap, file, name) != 0) {
+	if (cgetent(&ups_cap, (void *)file, name) != 0) {
 		perror("ups_new: can't read upstab");
 		return NULL;
 	}