Commit 32b3b4d4 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Remove parameter.

parent d1e36751
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@
#include "../../util/common.h"
#include "dataTransmitter.h"

bool send_to_socket(PrrtSocket* sock_ptr, PrrtReceiver *recv, uint8_t* buf, prrtPacketLength_t length,  struct timespec *packet_timestamp, uint64_t* packet_clockstamp) {
bool send_to_socket(PrrtSocket* sock_ptr, uint8_t* buf, prrtPacketLength_t length,  struct timespec *packet_timestamp, uint64_t* packet_clockstamp) {
    PrrtReceiver *recv = sock_ptr->receiver;
    if(sock_ptr->isHardwareTimestamping) {
        struct msghdr msg;
        struct iovec iov;
@@ -95,7 +96,7 @@ static bool send_packet(PrrtSocket *sock_ptr, PrrtPacket *packet) {

    struct timespec timestamp;
    uint64_t cyclestamp;
    send_to_socket(sock_ptr, sock_ptr->receiver, buf, length, &timestamp, &cyclestamp);
    send_to_socket(sock_ptr, buf, length, &timestamp, &cyclestamp);
    XlapTimeStampValue(sock_ptr, ts_data_packet, packet->sequenceNumber, ChannelTransmit, timestamp);
    XlapCycleStampValue(sock_ptr, ts_data_packet, packet->sequenceNumber, ChannelTransmit, cyclestamp);