cppcheck reports:
src/vbox/vbox_XPCOMCGlue.c:226:21: style:
The statement 'if (hVBoxXPCOMC!=NULL) hVBoxXPCOMC=NULL' is
logically equivalent to 'hVBoxXPCOMC=NULL'.
[duplicateConditionalAssign]
It does not matter anyway because this function
is never called.
Fixes: e1506cb4eb7eab96e7ded27a23f0d8ac9697ac2a
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
}
-/**
- * Terminate the C glue library.
- */
-void
-VBoxCGlueTerm(void)
-{
- if (hVBoxXPCOMC != NULL) {
-#if 0 /* VBoxRT.so doesn't like being reloaded. See @bugref{3725}. */
- dlclose(g_hVBoxXPCOMC);
-#endif
- hVBoxXPCOMC = NULL;
- }
-
- pVBoxFuncs_v2_2 = NULL;
- g_pfnGetFunctions = NULL;
-}
-
-
-
/*
* In XPCOM an array is represented by 1) a pointer to an array of pointers
* that point to the items and 2) an unsigned int representing the number of
extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions;
int VBoxCGlueInit(unsigned int *version);
-void VBoxCGlueTerm(void);
typedef struct _vboxArray vboxArray;