]> eyrie.org Git - kerberos/krb5-strength.git/commitdiff
Fix misuse of Readonly in make-c-data
authorRuss Allbery <eagle@eyrie.org>
Sun, 6 Nov 2016 23:36:45 +0000 (15:36 -0800)
committerRuss Allbery <eagle@eyrie.org>
Sun, 6 Nov 2016 23:36:45 +0000 (15:36 -0800)
This script was initializing variables with Readonly via assignment
rather than the fat arrow.  The latter is the correct syntax.

tests/data/passwords/make-c-data

index 57d9e94b5d864ec2a2d42b52397dddc589b834f8..471a05025aa347c0afd3d6da47e0298807c4e3ca 100755 (executable)
@@ -42,12 +42,12 @@ Readonly my $HEADER => <<'END_HEADER';
 END_HEADER
 
 # The list of attributes, in order, whose values go into the C struct.
-Readonly my @ATTRIBUTES = qw(name principal password code error);
+Readonly my @ATTRIBUTES => qw(name principal password code error);
 
 # A hash of attributes that should be put in the C struct as they literally
 # appear in the JSON, rather than as strings.  (In other words, attributes
 # that are numbers or C constants.)  Only the keys are of interest.
-Readonly my %IS_LITERAL_ATTRIBUTE = (code => 1);
+Readonly my %IS_LITERAL_ATTRIBUTE => (code => 1);
 
 ##############################################################################
 # Functions