aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h225
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-09-06 14:18:49 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-09-06 14:18:49 +0000
commitb9b159713a8572ff6d8cbaa29b2835b2dec1a0b1 (patch)
treeb87ab37ce9182bb8e760820e24658efed9258c56 /asn1/h225
parent92015a695f4ccbff1118f41027411708c5ed1e9f (diff)
get rid of few warnings
svn path=/trunk/; revision=15700
Diffstat (limited to 'asn1/h225')
-rw-r--r--asn1/h225/h225.cnf8
1 files changed, 5 insertions, 3 deletions
diff --git a/asn1/h225/h225.cnf b/asn1/h225/h225.cnf
index 86b373b53a..142f648d28 100644
--- a/asn1/h225/h225.cnf
+++ b/asn1/h225/h225.cnf
@@ -213,7 +213,7 @@ CallIdentifier/guid guid
if (h225_pi->is_destinationInfo == TRUE) {
if (value_tvb) {
len = tvb_length(value_tvb);
- tvb_memcpy(value_tvb, h225_pi->dialedDigits, 0, len);
+ tvb_memcpy(value_tvb, (guint8*)h225_pi->dialedDigits, 0, len);
}
h225_pi->dialedDigits[len] = '\0';
h225_pi->is_destinationInfo = FALSE;
@@ -223,10 +223,12 @@ CallIdentifier/guid guid
#.FN_PARS H245TransportAddress/h245ipAddress/h245ipv4
VAL_PTR = &value_tvb
#.FN_BODY H245TransportAddress/h245ipAddress/h245ipv4
- tvbuff_t *value_tvb;
+ tvbuff_t *value_tvb;
+ ipv4_address = 0;
%(DEFAULT_BODY)s
- tvb_memcpy(value_tvb, (char *)&ipv4_address, 0, 4);
+ if (value_tvb)
+ tvb_memcpy(value_tvb, (guint8*)&ipv4_address, 0, 4);
#.END
#----------------------------------------------------------------------------------------
#.FN_PARS H245TransportAddress/h245ipAddress/h245ipv4port