bugfix (pthread_create argument expectation)
This commit is contained in:
parent
a9979d48cd
commit
5dbac79460
|
|
@ -777,7 +777,7 @@ static int check_pz() {
|
|||
return is_inside;
|
||||
}
|
||||
|
||||
void* ca_service() {
|
||||
void* ca_service(void *arg) {
|
||||
int rv = 0;
|
||||
|
||||
EIS_NetworkingRequest_t* nr = calloc(1, sizeof(EIS_NetworkingRequest_t));
|
||||
|
|
|
|||
|
|
@ -124,6 +124,6 @@ enum CAM_CHECK_R check_cam(EIS_BTPPacketIndication_t* bpi, void* cam, uint8_t* s
|
|||
*
|
||||
* @return NULL
|
||||
*/
|
||||
void* ca_service();
|
||||
void* ca_service(void *arg);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -689,7 +689,7 @@ cleanup:
|
|||
return rv;
|
||||
}
|
||||
|
||||
void *cp_service(){
|
||||
void *cp_service(void *arg){
|
||||
/* Variables */
|
||||
int i32_recv_bytes;
|
||||
u_int8_t au8_readBuffer[READ_BUFFER_SIZE];
|
||||
|
|
|
|||
|
|
@ -182,6 +182,6 @@ Summary: Read from Radar socket (s_socket.i32_socket) call the function to inter
|
|||
param[in] void
|
||||
*/
|
||||
|
||||
void* cp_service();
|
||||
void* cp_service(void *arg);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ int den_init() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
void* den_service() {
|
||||
void* den_service(void *arg) {
|
||||
|
||||
uint64_t now;
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ typedef struct cc_ssp_bm {
|
|||
*/
|
||||
enum EVENT_CHECK_R event_manage(void* denm, uint64_t* id, uint8_t* ssp, uint32_t ssp_len);
|
||||
|
||||
int den_init();
|
||||
void* den_service();
|
||||
int den_init(void *arg);
|
||||
void* den_service(void *arg);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ enum EVM_CHECK_R check_evrsrm(EIS_BTPPacketIndication_t *bpi, EI1_EV_RSR_t *evrs
|
|||
return 0;
|
||||
}
|
||||
|
||||
void *evcsn_service() {
|
||||
void *evcsn_service(void *arg) {
|
||||
int rv = 0;
|
||||
|
||||
EIS_NetworkingRequest_t* nr = calloc(1, sizeof(EIS_NetworkingRequest_t));
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ enum EVM_CHECK_R check_evrsrm(EIS_BTPPacketIndication_t *bpi, EI1_EV_RSR_t *evrs
|
|||
*
|
||||
* @return NULL
|
||||
*/
|
||||
void *evcsn_service();
|
||||
void *evcsn_service(void *arg);
|
||||
|
||||
/**
|
||||
* @brief Creates a EVCSNM response and sends it
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ cleanup:
|
|||
return rv;
|
||||
}
|
||||
|
||||
void *tx() {
|
||||
void *tx(void *arg) {
|
||||
int rv = 0;
|
||||
|
||||
itss_queue_t *queue = facilities.tx_queue;
|
||||
|
|
|
|||
|
|
@ -512,7 +512,7 @@ int infrastructure_init() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
void* infrastructure_service() {
|
||||
void* infrastructure_service(void *arg) {
|
||||
|
||||
struct timespec systemtime;
|
||||
uint64_t now;
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ cleanup:
|
|||
return rv;
|
||||
}
|
||||
|
||||
void *mc_service(){
|
||||
void *mc_service(void *arg){
|
||||
int rv;
|
||||
mcm_coord_t *mcm_coord = (mcm_coord_t *)&facilities.mcm_coord;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ typedef struct mcm_coord {
|
|||
pthread_mutex_t lock;
|
||||
} mcm_coord_t;
|
||||
|
||||
void* mc_service();
|
||||
void* mc_service(void *arg);
|
||||
void mcm_coord_init();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ cleanup:
|
|||
return rv;
|
||||
}
|
||||
|
||||
void *sa_service() {
|
||||
void *sa_service(void *arg) {
|
||||
|
||||
pthread_mutex_init(&facilities.bulletin.lock, NULL);
|
||||
|
||||
|
|
|
|||
|
|
@ -76,4 +76,4 @@ SAEM_CODE_R saem_check(EI1_SAEM_t* saem, uint8_t* neighbour);
|
|||
*
|
||||
* @return NULL
|
||||
*/
|
||||
void* sa_service();
|
||||
void* sa_service(void *arg);
|
||||
|
|
|
|||
|
|
@ -1189,7 +1189,7 @@ static bool vcm_timer_check(coordination_t* coordination, uint64_t now) {
|
|||
return send;
|
||||
}
|
||||
|
||||
void* vc_service() {
|
||||
void* vc_service(void *arg) {
|
||||
|
||||
coordination_t* coordination = (coordination_t*) &facilities.coordination;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue