how you will deal this problem and what should be the correct syntax............
error: dereferencing pointer to incomplete typeCode:Convert time from pcap pkthdr format (double longs) to 1/10,000 seconds since midnight */ int get_pkttime (struct pcap_pkthdr *pkthdr) { struct tm *time; time = localtime(&pkthdr->ts.tv_sec); return (int) pkthdr->ts.tv_usec/100 + /* Convert microseconds */ M0SEC *(time->tm_sec + 60*(time->tm_min + 60*time->tm_hour)); }
please give me feedback.