2005-01-04 14:37:30 +01:00
|
|
|
$NetBSD: patch-ac,v 1.2 2005/01/04 13:37:31 taca Exp $
|
2004-12-31 15:36:57 +01:00
|
|
|
|
|
|
|
--- src/ups.c.orig 2003-01-21 20:49:06.000000000 +0900
|
|
|
|
+++ src/ups.c
|
2005-01-04 14:37:30 +01:00
|
|
|
@@ -99,7 +99,7 @@ ups_new(name, device, timeout, grace)
|
2004-12-31 15:36:57 +01:00
|
|
|
UPS ups;
|
|
|
|
char *s, *how;
|
2005-01-04 14:37:30 +01:00
|
|
|
|
|
|
|
- if (cgetent(&ups_cap, file, name) != 0) {
|
|
|
|
+ if (cgetent(&ups_cap, (void *)file, name) != 0) {
|
|
|
|
perror("ups_new: can't read upstab");
|
|
|
|
return NULL;
|
|
|
|
}
|