From 80122d883fdcacd27a1f0013ad950f7bab5073b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 14 Mar 2024 09:47:34 +0100 Subject: [PATCH] improve whitespace around commas --- iemnet.c | 6 +++--- iemnet_data.c | 4 ++-- iemnet_sender.c | 2 +- udpserver.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iemnet.c b/iemnet.c index d2ea041..984cbee 100644 --- a/iemnet.c +++ b/iemnet.c @@ -126,7 +126,7 @@ void iemnet__addrout(t_outlet*status_outlet, t_outlet*address_outlet, addr[4].a_w.w_float = port; if(status_outlet ) { - outlet_anything(status_outlet , gensym("address"), 5, addr); + outlet_anything(status_outlet, gensym("address"), 5, addr); } if(address_outlet) { outlet_list(address_outlet, gensym("list" ), 5, addr); @@ -140,7 +140,7 @@ void iemnet__numconnout(t_outlet*status_outlet, t_outlet*numcon_outlet, SETFLOAT(atom, numconnections); if(status_outlet) { - outlet_anything(status_outlet , gensym("connections"), 1, atom); + outlet_anything(status_outlet, gensym("connections"), 1, atom); } if(numcon_outlet) { outlet_float(numcon_outlet, numconnections); @@ -154,7 +154,7 @@ void iemnet__socketout(t_outlet*status_outlet, t_outlet*socket_outlet, SETFLOAT(atom, socketfd); if(status_outlet) { - outlet_anything(status_outlet , gensym("socket"), 1, atom); + outlet_anything(status_outlet, gensym("socket"), 1, atom); } if(socket_outlet) { outlet_float(socket_outlet, socketfd); diff --git a/iemnet_data.c b/iemnet_data.c index 592c3cb..b5940ca 100644 --- a/iemnet_data.c +++ b/iemnet_data.c @@ -520,10 +520,10 @@ t_iemnet_queue* queue_create(void) q->tail = NULL; memcpy(&q->cond, &cond, sizeof(pthread_cond_t)); - memcpy(&q->mtx , &mtx, sizeof(pthread_mutex_t)); + memcpy(&q->mtx, &mtx, sizeof(pthread_mutex_t)); memcpy(&q->usedcond, &cond, sizeof(pthread_cond_t)); - memcpy(&q->usedmtx , &mtx, sizeof(pthread_mutex_t)); + memcpy(&q->usedmtx, &mtx, sizeof(pthread_mutex_t)); q->done = 0; q->size = 0; diff --git a/iemnet_sender.c b/iemnet_sender.c index 6bf1db4..1886919 100644 --- a/iemnet_sender.c +++ b/iemnet_sender.c @@ -245,7 +245,7 @@ t_iemnet_sender*iemnet__sender_create(int sock, result->userdata = userdata; DEBUG("create_sender queue = %x", result->queue); - memcpy(&result->mtx , &mtx, sizeof(pthread_mutex_t)); + memcpy(&result->mtx, &mtx, sizeof(pthread_mutex_t)); res = pthread_create(&result->thread, 0, iemnet__sender_sendthread, result); if(0 == res) { diff --git a/udpserver.c b/udpserver.c index 41f7d25..2a68373 100644 --- a/udpserver.c +++ b/udpserver.c @@ -301,7 +301,7 @@ static void udpserver_sender_autoremove(t_udpserver*x) { return; } x->x_lastchecked = clock_getlogicaltime(); - for(id=0; idx_nconnections;id++) { + for(id=0; idx_nconnections; id++) { if(!x->x_sr[id]) { continue; }