summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-12-19 00:58:18 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-04-26 12:38:48 +0200
commita3d19f71a205d31ce141dcfd8880f7ed13bd65e5 (patch)
treeda2cbedff9645553ec4b2ea20c1d509ef4f46d49 /src/nxt_http.h
parentbce0f432c402ad18718aecab227b663160682ea4 (diff)
downloadunit-a3d19f71a205d31ce141dcfd8880f7ed13bd65e5.tar.gz
unit-a3d19f71a205d31ce141dcfd8880f7ed13bd65e5.tar.bz2
Fixed indentation.
Some lines (incorrectly) had an indentation of 3 or 5, or 7 or 9, or 11 or 13, or 15 or 17 spaces instead of 4, 8, 12, or 16. Fix them. Found with: $ find src -type f | xargs grep -n '^ [^ ]'; $ find src -type f | xargs grep -n '^ [^ *]'; $ find src -type f | xargs grep -n '^ [^ ]'; $ find src -type f | xargs grep -n '^ [^ *]'; $ find src -type f | xargs grep -n '^ [^ +]'; $ find src -type f | xargs grep -n '^ [^ *+]'; $ find src -type f | xargs grep -n '^ [^ +]'; $ find src -type f | xargs grep -n '^ [^ *+]';
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 02d66f58..7cef1345 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -90,17 +90,17 @@ typedef union {
#define nxt_http_field_name_set(_field, _name) \
do { \
- (_field)->name_length = nxt_length(_name); \
- (_field)->name = (u_char *) _name; \
+ (_field)->name_length = nxt_length(_name); \
+ (_field)->name = (u_char *) _name; \
} while (0)
#define nxt_http_field_set(_field, _name, _value) \
do { \
- (_field)->name_length = nxt_length(_name); \
- (_field)->value_length = nxt_length(_value); \
- (_field)->name = (u_char *) _name; \
- (_field)->value = (u_char *) _value; \
+ (_field)->name_length = nxt_length(_name); \
+ (_field)->value_length = nxt_length(_value); \
+ (_field)->name = (u_char *) _name; \
+ (_field)->value = (u_char *) _value; \
} while (0)
@@ -238,7 +238,7 @@ typedef struct {
void (*body_read)(nxt_task_t *task, nxt_http_request_t *r);
void (*local_addr)(nxt_task_t *task, nxt_http_request_t *r);
void (*header_send)(nxt_task_t *task, nxt_http_request_t *r,
- nxt_work_handler_t body_handler, void *data);
+ nxt_work_handler_t body_handler, void *data);
void (*send)(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *out);
nxt_off_t (*body_bytes_sent)(nxt_task_t *task, nxt_http_proto_t proto);
void (*discard)(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *last);