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