Cleanup and formatting

This commit is contained in:
Olof hagsand 2025-03-13 14:39:28 +01:00
parent 839077de57
commit d986ed423b
4 changed files with 5 additions and 9 deletions

View file

@ -275,11 +275,7 @@ backend_accept_client(int fd,
#error "Need getsockopt O_PEERCRED or getpeereid for unix socket peer cred"
#endif
if (name != NULL){
if ((ce->ce_username = name) == NULL){
clixon_err(OE_UNIX, errno, "strdup");
name = NULL;
goto done;
}
ce->ce_username = name;
name = NULL;
}
break;

View file

@ -184,7 +184,7 @@ xpath_append(cbuf *cb0,
return retval;
}
/*! Insert (escaped) strings into expand coammnds
/*! Insert (escaped) strings into expand commands
*
* Help function to expand_dbvar
* Detect duplicates: for ordered-by system assume list is ordered, so you need

View file

@ -543,8 +543,8 @@ atomicio_sig_handler(int arg)
/*! Receive a message using unified NETCONF w chunked framing
*
* @param[in] s socket (unix or inet) to communicate with backend
* @param[in] descr Description of peer for logging
* @param[in] intr If set, make a ^C cause an error (OBSOLETE?)
* @param[in] descr Description of peer for logging
* @param[in] intr If set, make a ^C cause an error (OBSOLETE?)
* @param[out] cb cligen buf struct containing the incoming message
* @param[out] eof Set if eof encountered
* @retval 0 OK (check eof)

View file

@ -858,7 +858,7 @@ xpath_vec(cxobj *xcur,
* @param[out] vec vector of xml-trees. Vector must be free():d after use
* @param[out] veclen returns length of vector in return value
* @retval 0 OK
* @retval -1 error.
* @retval -1 Error.
* @code
* cxobj **vec;
* size_t veclen;