[Replicant] [libsamsung-ril] [PATCH 11/23] ipc.c: break lines over 80 characters

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Thu Mar 4 12:42:38 UTC 2021


Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 ipc.c | 36 ++++++++++++++++++++++++------------
 1 file changed, 24 insertions(+), 12 deletions(-)

diff --git a/ipc.c b/ipc.c
index f2b3ebe..92cc765 100644
--- a/ipc.c
+++ b/ipc.c
@@ -67,7 +67,8 @@ int ipc_fmt_send(unsigned char mseq, unsigned short command, unsigned char type,
 	RIL_CLIENT_LOCK(client);
 	acquire_wake_lock(PARTIAL_WAKE_LOCK, RIL_VERSION_STRING);
 
-	rc = ipc_client_send(ipc_fmt_data->ipc_client, mseq, command, type, data, size);
+	rc = ipc_client_send(ipc_fmt_data->ipc_client, mseq, command, type,
+			     data, size);
 	if (rc < 0) {
 		RIL_LOGE("Sending to %s client failed", client->name);
 		goto error;
@@ -182,7 +183,8 @@ int ipc_fmt_create(struct ril_client *client)
 		goto error;
 	}
 
-	rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler, NULL);
+	rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler,
+					      NULL);
 	if (rc < 0) {
 		RIL_LOGE("Setting %s client log handler failed", client->name);
 		goto error;
@@ -379,7 +381,8 @@ int ipc_fmt_dispatch(struct ril_client *client, struct ipc_message *message)
 		}
 	}
 
-	RIL_LOGD("Unhandled %s message: %s", client->name, ipc_command_string(message->command));
+	RIL_LOGD("Unhandled %s message: %s", client->name,
+		 ipc_command_string(message->command));
 
 	rc = 0;
 	goto complete;
@@ -455,7 +458,8 @@ int ipc_fmt_loop(struct ril_client *client)
 
 		rc = ipc_client_recv(data->ipc_client, &message);
 		if (rc < 0) {
-			RIL_LOGE("Receiving from %s client failed", client->name);
+			RIL_LOGE("Receiving from %s client failed",
+				 client->name);
 
 			release_wake_lock(RIL_VERSION_STRING);
 			RIL_CLIENT_UNLOCK(client);
@@ -514,7 +518,8 @@ int ipc_fmt_request_register(struct ril_client *client, int request,
 
 	RIL_CLIENT_LOCK(client);
 
-	ipc_fmt_request = (struct ipc_fmt_request *) calloc(1, sizeof(struct ipc_fmt_request));
+	ipc_fmt_request = (struct ipc_fmt_request *) calloc(
+		1, sizeof(struct ipc_fmt_request));
 	ipc_fmt_request->request = request;
 	ipc_fmt_request->token = token;
 	ipc_fmt_request->seq = 0xff;
@@ -554,8 +559,10 @@ int ipc_fmt_request_unregister(struct ril_client *client, int request,
 
 		ipc_fmt_request = (struct ipc_fmt_request *) list->data;
 
-		if (ipc_fmt_request->request == request && ipc_fmt_request->token == token) {
-			memset(ipc_fmt_request, 0, sizeof(struct ipc_fmt_request));
+		if (ipc_fmt_request->request == request &&
+		    ipc_fmt_request->token == token) {
+			memset(ipc_fmt_request, 0,
+			       sizeof(struct ipc_fmt_request));
 			free(ipc_fmt_request);
 
 			if (list == data->requests)
@@ -594,7 +601,8 @@ int ipc_fmt_request_flush(struct ril_client *client)
 		if (list->data != NULL) {
 			ipc_fmt_request = (struct ipc_fmt_request *) list->data;
 
-			memset(ipc_fmt_request, 0, sizeof(struct ipc_fmt_request));
+			memset(ipc_fmt_request, 0,
+			       sizeof(struct ipc_fmt_request));
 			free(ipc_fmt_request);
 		}
 
@@ -735,7 +743,8 @@ int ipc_rfs_send(unsigned char mseq, unsigned short command, const void *data,
 	RIL_CLIENT_LOCK(client);
 	acquire_wake_lock(PARTIAL_WAKE_LOCK, RIL_VERSION_STRING);
 
-	rc = ipc_client_send(ipc_rfs_data->ipc_client, mseq, command, 0x00, data, size);
+	rc = ipc_client_send(ipc_rfs_data->ipc_client, mseq, command,
+			     0x00, data, size);
 	if (rc < 0) {
 		RIL_LOGE("Sending to %s client failed", client->name);
 		goto error;
@@ -796,7 +805,8 @@ int ipc_rfs_create(struct ril_client *client)
 		goto error;
 	}
 
-	rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler, NULL);
+	rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler,
+					      NULL);
 	if (rc < 0) {
 		RIL_LOGE("Setting %s client log handler failed", client->name);
 		goto error;
@@ -968,7 +978,8 @@ int ipc_rfs_dispatch(struct ril_client *client, struct ipc_message *message)
 		}
 	}
 
-	RIL_LOGD("Unhandled %s message: %s", client->name, ipc_command_string(message->command));
+	RIL_LOGD("Unhandled %s message: %s", client->name,
+		 ipc_command_string(message->command));
 
 	rc = 0;
 	goto complete;
@@ -1043,7 +1054,8 @@ int ipc_rfs_loop(struct ril_client *client)
 
 		rc = ipc_client_recv(data->ipc_client, &message);
 		if (rc < 0) {
-			RIL_LOGE("Receiving from %s client failed", client->name);
+			RIL_LOGE("Receiving from %s client failed",
+				 client->name);
 
 			release_wake_lock(RIL_VERSION_STRING);
 			RIL_CLIENT_UNLOCK(client);
-- 
2.30.1



More information about the Replicant mailing list