[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/5] remote generator: Fix comment ignoring regex



---
 daemon/remote_generator.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daemon/remote_generator.pl b/daemon/remote_generator.pl
index b06e51a..8d62c37 100755
--- a/daemon/remote_generator.pl
+++ b/daemon/remote_generator.pl
@@ -380,7 +380,7 @@ elsif ($opt_b) {
                     } else {
                         push(@args_list, "args->$2");
                     }
-                } elsif ($args_member =~ m/^\/*/) {
+                } elsif ($args_member =~ m/^(\/)?\*/) {
                     # ignore comments
                 } else {
                     die "unhandled type for argument value: $args_member";
@@ -909,7 +909,7 @@ elsif ($opt_k) {
 
                     push(@args_list, "$type_name $arg_name");
                     push(@setters_list, "args.$arg_name = $arg_name;");
-                } elsif ($args_member =~ m/^\/*/) {
+                } elsif ($args_member =~ m/^(\/)?\*/) {
                     # ignore comments
                 } else {
                     die "unhandled type for argument value: $args_member";
-- 
1.7.0.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]