5796N/A# SPARC misalignment bug: 21492790
5796N/A# Most likely not for upstream.
5796N/A struct timeval *t = (struct timeval *)nsock_gettimeofday();
5796N/A- const unsigned char *packet=NULL;
5796N/A+ unsigned char *packet=NULL;
5796N/A+ const unsigned char *pkt = NULL;
5796N/A const unsigned char *link=NULL;
5796N/A- memset(final_output, 0, sizeof(final_output));
5796N/A+ (void) std::memset(final_output, 0, sizeof(final_output));
5796N/A nping_print(DBG_4, "nping_event_handler(): Received callback of type %s with status %s",
5796N/A nse_type2str(type), nse_status2str(status));
5796N/A- nse_readpcap(nse, &link, &linklen, &packet, &packetlen, NULL, &pcaptime);
5796N/A+ nse_readpcap(nse, &link, &linklen, &pkt, &packetlen, NULL,
5796N/A+ r = posix_memalign((void**) &p, 8U, (size_t) packetlen);
5796N/A+ "posix_memalign failed (%i). trying malloc", r);
5796N/A+ p = (unsigned char*) safe_malloc(packetlen);
5796N/A+ (void) std::memcpy(const_cast<void*>(reinterpret_cast<const void*>(packet)),
5796N/A+ const_cast<void*>(reinterpret_cast<const void*>(pkt)), packetlen);
5796N/A /* If we are on a Ethernet network, extract the next packet protocol
5796N/A * from the Ethernet frame. */
5796N/A nping_warning(QT_2, "nping_event_handler(): Unknown status code %d\n", status);
5796N/A } /* End of nping_event_handler() */