]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: settings-get.pl - Fix to work with "use warnings"
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 19 May 2023 13:58:51 +0000 (16:58 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:22:31 +0000 (14:22 +0200)
src/config/settings-get.pl

index 91d35244217ebf90d47a058831d54937ff0ecb2e..f275c9a278deecf1367fc6821935f181f6dad6e2 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env perl
 use strict;
+use warnings;
 
 print "/* WARNING: THIS FILE IS GENERATED - DO NOT PATCH!\n";
 print "   It's not enough alone in any case, because the defaults may be\n";
@@ -28,9 +29,9 @@ print '#include <unistd.h>'."\n";
 print '#define CONFIG_BINARY'."\n";
 
 my @services = ();
-my %service_defaults = {};
+my %service_defaults = ();
 my @service_ifdefs = ();
-my %parsers = {};
+my %parsers = ();
 
 my $linked_file = 0;
 foreach my $file (@ARGV) {