]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Perl's Net::Skinny : update to current handle PACKED structs
authorMathieu Parent <math.parent@gmail.com>
Sun, 19 Dec 2010 20:38:55 +0000 (21:38 +0100)
committerMathieu Parent <math.parent@gmail.com>
Sun, 19 Dec 2010 21:16:40 +0000 (22:16 +0100)
src/mod/endpoints/mod_skinny/Net/Skinny/Protocol.pm

index 90de30481767c8fb698f2b6c4f520124956141d5..94708881e3975413a7f6c60308845c54254a2dbe 100644 (file)
@@ -48,7 +48,7 @@ sub _find {
             my ($name, $value) = ($1,hex($2));
             $sub{$name} = sub () { $value };
             $const{$name} = $value;
-        } elsif(/^\s*struct\s+([a-z_]+)\s*\{\s*$/) {
+        } elsif(/^\s*struct\s+PACKED\s+([a-z_]+)\s*\{\s*$/) {
             my $struct_name = $1;
             $struct{$struct_name} = [];
             while(<$fh>) {