[libvirt-php][PATCH 03/11] Move VNC_MAX_AUTH_ATTEMPTS to vncfunc.c

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

 



There is no need to have this macro in the header file. It's used
in one place after all.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/libvirt-php.h | 3 ---
 src/vncfunc.c     | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libvirt-php.h b/src/libvirt-php.h
index 0cd160f..ce885e5 100644
--- a/src/libvirt-php.h
+++ b/src/libvirt-php.h
@@ -26,9 +26,6 @@
 
 #define ARRAY_CARDINALITY(array)    (sizeof(array) / sizeof(array[0]))
 
-/* Maximum number of authentication attempts */
-#define VNC_MAX_AUTH_ATTEMPTS       10
-
 /* Network constants */
 #define VIR_NETWORKS_ACTIVE     1
 #define VIR_NETWORKS_INACTIVE       2
diff --git a/src/vncfunc.c b/src/vncfunc.c
index 17cf050..6e2f220 100644
--- a/src/vncfunc.c
+++ b/src/vncfunc.c
@@ -78,6 +78,9 @@ vnc_write_client_version(int sfd)
     return 0;
 }
 
+/* Maximum number of authentication attempts */
+# define VNC_MAX_AUTH_ATTEMPTS  10
+
 /*
  * Private function name:   vnc_authorize
  * Since version:           0.4.3
-- 
2.8.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]