Hi, If you read the warnings you will see what is wrong:
packet-xxx.c(1077) : warning C4244: '=' : conversion from 'time_t' to 'unsigned int', possible loss of data This warning tells you that you are trying to convert a time_t to an unsigned int, which may lead to loss of data. In Wireshark nstime_t.secs is defined as time_t, not unsigned int. You can fix this in one of two ways: 1. Use correct data types for hours, mins and secs: time_t hours; time_t mins; time_t secs; 2. Add a cast in the assignment: hours = (unsigned int)(tagv.secs / 3600); mins = (unsigned int)((tagv.secs - (hours * 3600)) / 60); secs = (unsigned int)(tagv.secs - (hours * 3600) - (mins * 60)); -- Stig Bjørlykke _______________________________________________ Wireshark-dev mailing list [email protected] http://www.wireshark.org/mailman/listinfo/wireshark-dev
