Fix typo "endianness"

This commit is contained in:
Matteo Cypriani 2012-11-06 01:19:36 +01:00
parent 8310467f7c
commit 8df82b9c41
3 changed files with 5 additions and 5 deletions

View File

@ -376,7 +376,7 @@ void owl_time_elapsed(const owl_timestamp *const d1,
/*
* Converts a owl_timestamp from host endianess to network endianess.
* Converts a owl_timestamp from host endianness to network endianness.
*/
void owl_hton_timestamp(owl_timestamp *const d)
{
@ -387,7 +387,7 @@ void owl_hton_timestamp(owl_timestamp *const d)
/*
* Converts a owl_timestamp from network endianess to host endianess.
* Converts a owl_timestamp from network endianness to host endianness.
*/
void owl_ntoh_timestamp(owl_timestamp *const d)
{

View File

@ -587,7 +587,7 @@ uint_fast16_t initialise_common_fields(uint_fast8_t packet_type)
char request_time_str[OWL_TIMESTAMP_STRLEN] ;
// Get the current time and copy it as a string before to switch it to
// network endianess:
// network endianness:
owl_timestamp_now(&request_time) ;
owl_timestamp_to_string(&request_time, request_time_str) ;
owl_hton_timestamp(&request_time) ;
@ -631,7 +631,7 @@ uint_fast16_t initialise_calibration_fields(uint_fast16_t offset)
packet[offset - 1], options.x, options.y, options.z) ;
#endif // DEBUG
// Convert the coordinates to the network endianess:
// Convert the coordinates to the network endianness:
x = owl_htonf(options.x) ;
y = owl_htonf(options.y) ;
z = owl_htonf(options.z) ;

View File

@ -1030,7 +1030,7 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header,
request.type = packet[offset] ;
extract_packet_numbers(&packet[++offset], &request) ;
offset += 2 * sizeof(uint16_t) ;
// Copy the timestamp "as is" (i.e. without changing endianess)
// Copy the timestamp "as is" (i.e. without changing endianness)
// because it will return to the network soon:
memcpy(&request.request_time, &packet[offset],
sizeof(owl_timestamp)) ;