diff options
| author | 2010-06-13 15:21:29 +0000 | |
|---|---|---|
| committer | 2010-06-13 15:21:29 +0000 | |
| commit | cfcfaded711c1a51ddc160b02c377b3fc65456cb (patch) | |
| tree | c51cf57dca6665b8966c281f4a7be58250d73a6b /src/modules/upnp | |
| parent | Fix for a crash in the objects module (diff) | |
| download | KVIrc-cfcfaded711c1a51ddc160b02c377b3fc65456cb.tar.gz KVIrc-cfcfaded711c1a51ddc160b02c377b3fc65456cb.tar.bz2 KVIrc-cfcfaded711c1a51ddc160b02c377b3fc65456cb.zip | |
Make the KVS parameter specification a bit more typesafe. Fix some mismatched types detected with the new method.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4457 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/upnp')
| -rw-r--r-- | src/modules/upnp/libkviupnp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/upnp/libkviupnp.cpp b/src/modules/upnp/libkviupnp.cpp index c22159995..865192d4a 100644 --- a/src/modules/upnp/libkviupnp.cpp +++ b/src/modules/upnp/libkviupnp.cpp @@ -109,7 +109,7 @@ static bool upnp_kvs_fnc_isGatewayAvailable(KviKvsModuleFunctionCall * c) */ static bool upnp_kvs_cmd_addPortMapping(KviKvsModuleCommandCall * c) { - int iPort; + kvs_int_t iPort; QString szLocalIp; KviKvsVariant * pSw; @@ -148,8 +148,7 @@ static bool upnp_kvs_cmd_addPortMapping(KviKvsModuleCommandCall * c) */ static bool upnp_kvs_cmd_delPortMapping(KviKvsModuleCommandCall * c) { - int iPort; - + kvs_int_t iPort; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("port",KVS_PT_INT,0,iPort) KVSM_PARAMETERS_END(c) |
