diff options
author | taca <taca@pkgsrc.org> | 2005-01-04 13:37:30 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2005-01-04 13:37:30 +0000 |
commit | 983b129ac54ead29c1951a483dfeab4ca48325a9 (patch) | |
tree | 2d8c6a82f02fe8d5e7301fc1890191c13566f82d /sysutils/bkpupsd/patches | |
parent | 21a125b2de4b1c7045b9c8945195793fe5da1c9f (diff) | |
download | pkgsrc-983b129ac54ead29c1951a483dfeab4ca48325a9.tar.gz |
- 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.
Diffstat (limited to 'sysutils/bkpupsd/patches')
-rw-r--r-- | sysutils/bkpupsd/patches/patch-ac | 22 | ||||
-rw-r--r-- | sysutils/bkpupsd/patches/patch-ad | 25 |
2 files changed, 33 insertions, 14 deletions
diff --git a/sysutils/bkpupsd/patches/patch-ac b/sysutils/bkpupsd/patches/patch-ac index 896477bf0b0..b85b350bfdc 100644 --- a/sysutils/bkpupsd/patches/patch-ac +++ b/sysutils/bkpupsd/patches/patch-ac @@ -1,19 +1,13 @@ -$NetBSD: patch-ac,v 1.1 2004/12/31 14:36:57 taca Exp $ +$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 -@@ -90,11 +90,11 @@ ups_new(name, device, timeout, grace) - int timeout; - int grace; - { -- static char *file[] = { UPSTAB, -+ static const char *file[] = { UPSTAB, - #ifdef DEBUG -- "upstab", -+ "upstab", - #endif -- NULL, }; -+ NULL, }; - char *ups_cap; +@@ -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; + } diff --git a/sysutils/bkpupsd/patches/patch-ad b/sysutils/bkpupsd/patches/patch-ad new file mode 100644 index 00000000000..2cb944e7a85 --- /dev/null +++ b/sysutils/bkpupsd/patches/patch-ad @@ -0,0 +1,25 @@ +$NetBSD: patch-ad,v 1.1 2005/01/04 13:37:31 taca Exp $ + +--- src/bkpupsd.8.in.orig 2002-12-22 02:42:01.000000000 +0900 ++++ src/bkpupsd.8.in +@@ -62,7 +62,6 @@ section. + For FREQUPS, + the bundled cable is tested to work and dip switch #2 of FREQUPS + must be set to on. +- + Other type cables aren't tested at all. + Current specifications cable are follows: + .Bl -tag -width -flag +@@ -81,12 +80,10 @@ signal. + starts with ups name specified in the + .Xr upstab 5 + file on startup, and read parameter for corresponding ups. +- + Then + .Nm + opens the serial port specified with command line option, and sets its + status if needed. +- + .Pp + .Nm + checks the serial port, changing of modem control bits periodcally. |