Misc formatting

This commit is contained in:
Olof hagsand 2024-07-02 15:02:10 +02:00
parent f42a5ba87e
commit 58358fb6da
5 changed files with 14 additions and 14 deletions

View file

@ -402,7 +402,7 @@ clixon_client_connect(clixon_handle h,
goto done;
}
/*! Connect client to clixon backend according to config and return a socket
/*! Disconnect client
*
* @param[in] ch Clixon client session handle
* @retval 0 OK

View file

@ -265,10 +265,10 @@ clicon_rpc_connect_unix(clixon_handle h,
* @see clicon_rpc But this is one-shot rpc: open, send, get reply and close.
*/
int
clicon_rpc_connect_inet(clixon_handle h,
char *dst,
uint16_t port,
int *sock0)
clicon_rpc_connect_inet(clixon_handle h,
char *dst,
uint16_t port,
int *sock0)
{
int retval = -1;
int s = -1;
@ -290,7 +290,7 @@ clicon_rpc_connect_inet(clixon_handle h,
return -1;
}
if (connect(s, (struct sockaddr*)&addr, sizeof(addr)) < 0){
clixon_err(OE_CFG, errno, "connecting socket inet4");
clixon_err(OE_CFG, errno, "connecting socket inet");
close(s);
goto done;
}
@ -651,10 +651,14 @@ clicon_rpc(int sock,
{
int retval = -1;
struct clicon_msg *reply = NULL;
cbuf *cbsend = cbuf_new();
cbuf *cbsend = NULL;
cbuf *cbrcv = NULL;
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "");
if ((cbsend = cbuf_new()) == NULL){
clixon_err(OE_UNIX, errno, "cbuf_new");
goto done;
}
cprintf(cbsend, "%s", msg->op_body);
if (clixon_msg_send11(sock, descr, cbsend) < 0)
goto done;

View file

@ -571,8 +571,8 @@ xml_diff(cxobj *x0,
* @see text_diff2cbuf Diff buffer in curly
*/
int
xml_tree_equal(cxobj *x0,
cxobj *x1)
xml_tree_equal(cxobj *x0,
cxobj *x1)
{
int retval = 1; /* Not equal */
int eq;