defined(@array) is deprecated.
Avoid mon to display annoying warnings. ok jasper@
This commit is contained in:
parent
f8369af63b
commit
21794211a6
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2011/03/20 06:36:55 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2011/04/14 12:55:38 pea Exp $
|
||||
|
||||
COMMENT = service monitoring daemon
|
||||
|
||||
DISTNAME = mon-${V}
|
||||
REVISION = 6
|
||||
REVISION = 7
|
||||
|
||||
WANTLIB = c
|
||||
|
||||
|
29
net/mon/server/patches/patch-mon_d_dns_monitor
Normal file
29
net/mon/server/patches/patch-mon_d_dns_monitor
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-mon_d_dns_monitor,v 1.1 2011/04/14 12:55:38 pea Exp $
|
||||
|
||||
defined(@array) is deprecated. Avoid mon to display
|
||||
annoying warnings.
|
||||
|
||||
--- mon.d/dns.monitor.orig Thu Apr 14 14:24:18 2011
|
||||
+++ mon.d/dns.monitor Thu Apr 14 14:24:43 2011
|
||||
@@ -168,18 +168,18 @@ if ( $#ARGV < 0 ) {
|
||||
exit -1;
|
||||
}
|
||||
if (!$CachingServer) {
|
||||
- if (!defined(@Master)) {
|
||||
+ if (!@Master) {
|
||||
print STDERR "$Program: The zone master server must be specified\n";
|
||||
usage();
|
||||
exit -1;
|
||||
}
|
||||
- if ( !defined(@Zones) ) {
|
||||
+ if ( !@Zones ) {
|
||||
print STDERR "$Program: At least one zone must be specified\n";
|
||||
usage();
|
||||
exit -1;
|
||||
}
|
||||
} else {
|
||||
- if ( !defined(@Queries) ) {
|
||||
+ if ( !@Queries ) {
|
||||
print STDERR "$Program: At least one query must be specified\n";
|
||||
usage();
|
||||
exit -1;
|
Loading…
x
Reference in New Issue
Block a user