aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-06 09:15:19 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-06 09:15:19 +0100
commitcb5d226e8618be53f7e14aa7d9c9b2dab4d50bba (patch)
treef16dd6fe3495e531b421b307823cf0871e6ba2e6 /src/util/service.c
parent2266d461461384be87dd4385e1fc2043c61bc99e (diff)
downloadgnunet-cb5d226e8618be53f7e14aa7d9c9b2dab4d50bba.tar.gz
gnunet-cb5d226e8618be53f7e14aa7d9c9b2dab4d50bba.zip
-use better types
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/util/service.c b/src/util/service.c
index df4feb0ec..c48060437 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -670,7 +670,8 @@ warn_no_client_continue (void *cls)
670 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the client was dropped 670 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the client was dropped
671 */ 671 */
672static int 672static int
673service_client_mst_cb (void *cls, const struct GNUNET_MessageHeader *message) 673service_client_mst_cb (void *cls,
674 const struct GNUNET_MessageHeader *message)
674{ 675{
675 struct GNUNET_SERVICE_Client *client = cls; 676 struct GNUNET_SERVICE_Client *client = cls;
676 677
@@ -703,10 +704,13 @@ static void
703service_client_recv (void *cls) 704service_client_recv (void *cls)
704{ 705{
705 struct GNUNET_SERVICE_Client *client = cls; 706 struct GNUNET_SERVICE_Client *client = cls;
706 int ret; 707 enum GNUNET_GenericReturnValue ret;
707 708
708 client->recv_task = NULL; 709 client->recv_task = NULL;
709 ret = GNUNET_MST_read (client->mst, client->sock, GNUNET_NO, GNUNET_YES); 710 ret = GNUNET_MST_read (client->mst,
711 client->sock,
712 GNUNET_NO,
713 GNUNET_YES);
710 if (GNUNET_SYSERR == ret) 714 if (GNUNET_SYSERR == ret)
711 { 715 {
712 /* client closed connection (or IO error) */ 716 /* client closed connection (or IO error) */