Remove more implicit casts in upnp part

Remove more "implicit integer or enum conversions" as well as memset
before snprintf.
This commit is contained in:
Fabrice Fontaine
2012-03-10 21:27:55 +01:00
parent db532afb9b
commit 2eb3e069ba
11 changed files with 119 additions and 102 deletions

View File

@@ -354,7 +354,7 @@ int DeviceAdvertisement(
/* [in] Service duration in sec. */
int Duration,
/* [in] Device address family. */
int AddressFamily,
unsigned short AddressFamily,
/* [in] PowerState as defined by UPnP Low Power. */
int PowerState,
/* [in] SleepPeriod as defined by UPnP Low Power. */
@@ -432,7 +432,7 @@ int ServiceAdvertisement(
/* [in] Life time of this device. */
int Duration,
/* [in] Device address family. */
int AddressFamily,
unsigned short AddressFamily,
/* [in] PowerState as defined by UPnP Low Power. */
int PowerState,
/* [in] SleepPeriod as defined by UPnP Low Power. */
@@ -480,7 +480,7 @@ int ServiceShutdown(
/* [in] Service duration in sec. */
int Duration,
/* [in] Device address family. */
int AddressFamily,
unsigned short AddressFamily,
/* [in] PowerState as defined by UPnP Low Power. */
int PowerState,
/* [in] SleepPeriod as defined by UPnP Low Power. */
@@ -508,7 +508,7 @@ int DeviceShutdown(
/* [in] Device duration in sec. */
int Duration,
/* [in] Device address family. */
int AddressFamily,
unsigned short AddressFamily,
/* [in] PowerState as defined by UPnP Low Power. */
int PowerState,
/* [in] SleepPeriod as defined by UPnP Low Power. */