Try to squelch some compiler warnings.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 15 Jun 2011 19:48:27 +0000 (19:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 15 Jun 2011 19:48:27 +0000 (19:48 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37673 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/netscaler.c

index a0fcc425848ba27c37431508e73c893999bf0cca..61c1151be659565bb07dd13fe48c842003f36d6f 100644 (file)
@@ -1149,7 +1149,7 @@ nstrace_add_abstime(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
                val16 = htoles(nspr_abstime_v10_s);
                memcpy(abs10.phd.ph_RecordSize, &val16, sizeof abs10.phd.ph_RecordSize);
 
-               memcpy(&reltime, ((nspr_pktracefull_v10_t *)pd)->fp_RelTimeHr, sizeof reltime);
+               memcpy(&reltime, ((const nspr_pktracefull_v10_t *)pd)->fp_RelTimeHr, sizeof reltime);
                nsg_creltime = ns_hrtime2nsec(reltime);
 
                memset(abs10.abs_RelTime, 0, sizeof abs10.abs_RelTime);
@@ -1172,7 +1172,7 @@ nstrace_add_abstime(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
                abs20.abs_RecordType = NSPR_ABSTIME_V20;
                abs20.abs_RecordSize = nspr_abstime_v20_s;
 
-               memcpy(&reltime, ((nspr_pktracefull_v20_t *)pd)->fp_RelTimeHr, sizeof reltime);
+               memcpy(&reltime, ((const nspr_pktracefull_v20_t *)pd)->fp_RelTimeHr, sizeof reltime);
                nsg_creltime = ns_hrtime2nsec(reltime);
 
                memset(abs20.abs_RelTime, 0, sizeof abs20.abs_RelTime);