aboutsummaryrefslogtreecommitdiffstats
path: root/modules/windows-sens
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:24:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:37:20 +0800
commit8a186c3588d3598857c36e2122fa68d01eba30fd (patch)
tree731078659d4e04af8346c5ca68512d8537b3707a /modules/windows-sens
parent2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff)
downloadgsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.bz2
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.lz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.xz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip
Coding style cleanups.
Diffstat (limited to 'modules/windows-sens')
-rw-r--r--modules/windows-sens/evolution-windows-sens.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/windows-sens/evolution-windows-sens.c b/modules/windows-sens/evolution-windows-sens.c
index 96f0a18701..d974422cd5 100644
--- a/modules/windows-sens/evolution-windows-sens.c
+++ b/modules/windows-sens/evolution-windows-sens.c
@@ -308,14 +308,14 @@ e_sens_network_listener_queryinterface (ISensNetwork *This,
static ULONG WINAPI
e_sens_network_listener_addref (ISensNetwork *This)
{
- ESensNetworkListener *esnl_ptr=(ESensNetworkListener*)This;
+ ESensNetworkListener *esnl_ptr=(ESensNetworkListener*) This;
return InterlockedIncrement (&(esnl_ptr->ref));
}
static ULONG WINAPI
e_sens_network_listener_release (ISensNetwork *This)
{
- ESensNetworkListener *esnl_ptr=(ESensNetworkListener*)This;
+ ESensNetworkListener *esnl_ptr=(ESensNetworkListener*) This;
ULONG tmp = InterlockedDecrement (&(esnl_ptr->ref));
return tmp;
}
@@ -368,7 +368,7 @@ e_sens_network_listener_connectionmade (ISensNetwork *This,
LPSENS_QOCINFO lpQOCInfo)
{
if (ulType) {
- ESensNetworkListener *esnl_ptr=(ESensNetworkListener*)This;
+ ESensNetworkListener *esnl_ptr=(ESensNetworkListener*) This;
EShell *shell = windows_sens_get_shell (esnl_ptr->ews_ptr);
/* Wait a second so that the connection stabilizes */
g_usleep (G_USEC_PER_SEC);
@@ -392,7 +392,7 @@ e_sens_network_listener_connectionlost (ISensNetwork *This,
ULONG ulType)
{
if (ulType) {
- ESensNetworkListener *esnl_ptr=(ESensNetworkListener*)This;
+ ESensNetworkListener *esnl_ptr=(ESensNetworkListener*) This;
EShell *shell = windows_sens_get_shell (esnl_ptr->ews_ptr);
e_shell_set_network_available (shell, FALSE);
}
@@ -407,7 +407,7 @@ e_sens_network_listener_destinationreachable (ISensNetwork *This,
LPSENS_QOCINFO lpQOCInfo)
{
if (ulType) {
- ESensNetworkListener *esnl_ptr=(ESensNetworkListener*)This;
+ ESensNetworkListener *esnl_ptr=(ESensNetworkListener*) This;
EShell *shell = windows_sens_get_shell (esnl_ptr->ews_ptr);
/* Wait a second so that the connection stabilizes */
g_usleep (G_USEC_PER_SEC);
@@ -502,7 +502,7 @@ windows_sens_constructed (GObject *object)
UUID tmp_uuid;
UuidCreate (&tmp_uuid);
UuidToString (&tmp_uuid, &subids[i]);
- res=pEventSubscription->lpVtbl->put_SubscriptionID (pEventSubscription, _mb2wchar (add_curly_braces_to_uuid ((gchar *)subids[i])));
+ res=pEventSubscription->lpVtbl->put_SubscriptionID (pEventSubscription, _mb2wchar (add_curly_braces_to_uuid ((gchar *) subids[i])));
if (res) {
RpcStringFree (&subids[i]);
break;
@@ -517,7 +517,7 @@ windows_sens_constructed (GObject *object)
res=pEventSubscription->lpVtbl->put_EventClassID (pEventSubscription, _mb2wchar (eventclassid));
if (res)
break;
- res=pEventSubscription->lpVtbl->put_SubscriberInterface (pEventSubscription, (IUnknown*)pESensNetworkListener);
+ res=pEventSubscription->lpVtbl->put_SubscriberInterface (pEventSubscription, (IUnknown*) pESensNetworkListener);
if (res)
break;
/* Make the subscription receive the event only if the owner of the subscription
@@ -528,7 +528,7 @@ windows_sens_constructed (GObject *object)
if (res)
break;
- res=pEventSystem->lpVtbl->Store (pEventSystem, (BSTR)PROGID_EventSubscription, (IUnknown*)pEventSubscription);
+ res=pEventSystem->lpVtbl->Store (pEventSystem, (BSTR) PROGID_EventSubscription, (IUnknown*) pEventSubscription);
if (res)
break;
pEventSubscription->lpVtbl->Release (pEventSubscription);