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

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

 



---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]