FreeBSD Bugzilla – Attachment 73670 Details for
Bug 106739
[PATCH] sysutils/bkpupsd: fix build with gcc41
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
bkpupsd-1.0a.patch
bkpupsd-1.0a.patch (text/plain), 1.15 KB, created by
trasz
on 2006-12-15 00:00:20 UTC
(
hide
)
Description:
bkpupsd-1.0a.patch
Filename:
MIME Type:
Creator:
trasz
Created:
2006-12-15 00:00:20 UTC
Size:
1.15 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/sysutils/bkpupsd/files/patch-ab /home/trasz/bkpupsd/files/patch-ab >--- /usr/ports/sysutils/bkpupsd/files/patch-ab Fri Feb 27 09:43:36 2004 >+++ /home/trasz/bkpupsd/files/patch-ab Fri Dec 15 00:58:12 2006 >@@ -1,5 +1,5 @@ >---- src/bkpupsd.c.orig Sun Aug 3 13:11:23 1997 >-+++ src/bkpupsd.c Thu Feb 26 17:17:09 2004 >+--- src/bkpupsd.c.orig Sun Aug 3 20:11:23 1997 >++++ src/bkpupsd.c Fri Dec 15 00:53:52 2006 > @@ -27,14 +27,17 @@ > */ > >@@ -19,11 +19,12 @@ > > #define POWER_TIMEOUT 5*60 > #define DEFAULT_PORT "/dev/cuaa1" >-@@ -44,16 +47,16 @@ >+@@ -44,16 +47,17 @@ > #define SH_RESTORED "/usr/local/libexec/bkpupsd/bkpups.restored" > #define SH_BATTLOW "/usr/local/libexec/bkpupsd/bkpups.battlow" > > +int makepid(char *s); >++void execomand(); > + > int main(argc, argv) > int argc; >@@ -38,6 +39,14 @@ > int pfail = 0; > int pfcount = 0; > int prcount = 0; >+@@ -63,7 +67,6 @@ >+ char *sh_restored = SH_RESTORED; >+ char *sh_battlow = SH_BATTLOW; >+ char *ups_port = DEFAULT_PORT; >+- static void execomand(); >+ >+ /* open ups port */ >+ if(argc > 2) { > @@ -179,7 +182,7 @@ > pid = getpid(); > if((fp = fopen(s, "w")) == NULL)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 106739
: 73670