Skip to content

Commit

Permalink
keytab-lilo: update to support kbd 2.0.3 format
Browse files Browse the repository at this point in the history
Since kbd 2.0.3 (commit 6ff47cf2) the format generated by 'loadkeys -m' has
changed slightly, using "unsigned short" instead of "u_short"

Signed-off-by: Olivier Brunel <jjk@jjacky.com>
  • Loading branch information
jjk-jacky authored and geneC committed Mar 2, 2016
1 parent bd91041 commit 138e850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/keytab-lilo
Expand Up @@ -48,9 +48,9 @@ sub load_map
$empty = 1;
while (<FILE>) {
chop;
if (/^(static\s+)?u_short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) {
if (/^(static\s+)?(u_|unsigned )short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) {
die "active at beginning of map" if defined $current;
$current = $pfx.":".$2;
$current = $pfx.":".$3;
next;
}
undef $current if /^};\s*$/;
Expand Down

0 comments on commit 138e850

Please sign in to comment.