pkgsrc/sysutils/bkpupsd/patches/patch-ac
taca 983b129ac5 - make lines of MESSAGE shorter.
- Cast (void *) second argument to cgetent(3) to compile on NetBSD
  current and prior.
- Remove blank line of manual page.
2005-01-04 13:37:30 +00:00

13 lines
368 B
Text

$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;
}