mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
esp_http_server: Run format.sh script to fix code style issues
This commit is contained in:
@@ -197,7 +197,7 @@ esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd);
|
||||
* @brief Processes incoming HTTP requests
|
||||
*
|
||||
* @param[in] hd Server instance data
|
||||
* @param[in] session session
|
||||
* @param[in] session Session
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK : on successfully receiving, parsing and responding to a request
|
||||
|
@@ -236,8 +236,7 @@ void httpd_sess_free_ctx(void **ctx, httpd_free_ctx_fn_t free_fn)
|
||||
}
|
||||
if (free_fn) {
|
||||
free_fn(*ctx);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
free(*ctx);
|
||||
}
|
||||
*ctx = NULL;
|
||||
@@ -366,8 +365,7 @@ void httpd_sess_delete(struct httpd_data *hd, struct sock_db *session)
|
||||
// Call close function if defined
|
||||
if (hd->config.close_fn) {
|
||||
hd->config.close_fn(hd, session->fd);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
close(session->fd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user