[libvirt] [libvirt-php][PATCH 05/14] libvirt-php.c: Fix code styling issues: no space needed after '[' and before ']'

Katerina Koukiou k.koukiou at gmail.com
Fri Sep 23 18:49:40 UTC 2016


Signed-off-by: Katerina Koukiou <k.koukiou at gmail.com>
---
 src/libvirt-php.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libvirt-php.c b/src/libvirt-php.c
index 235157e..9ee72be 100644
--- a/src/libvirt-php.c
+++ b/src/libvirt-php.c
@@ -1153,7 +1153,7 @@ PHP_MINFO_FUNCTION(libvirt)
     }
 
     if (strlen(features_supported) > 0) {
-        features_supported[ strlen(features_supported) - 2 ] = 0;
+        features_supported[strlen(features_supported) - 2] = 0;
         php_info_print_table_row(2, "Features supported", features_supported);
     }
 
@@ -3732,7 +3732,7 @@ char *generate_uuid_any()
         if ((i == 8) || (i == 13) || (i == 18) || (i == 23))
             a[i] = '-';
         else
-            a[i] = hexa[ rand() % strlen(hexa) ];
+            a[i] = hexa[rand() % strlen(hexa)];
     }
 
     return strdup(a);
-- 
2.7.3




More information about the libvir-list mailing list