summaryrefslogtreecommitdiffhomepage
path: root/src/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix/ngx_atomic.h20
-rw-r--r--src/os/unix/ngx_channel.h8
-rw-r--r--src/os/unix/ngx_sunpro_amd64.il6
-rw-r--r--src/os/unix/ngx_sunpro_x86.il6
-rw-r--r--src/os/win32/ngx_atomic.h8
-rw-r--r--src/os/win32/ngx_wsasend_chain.c10
6 files changed, 29 insertions, 29 deletions
diff --git a/src/os/unix/ngx_atomic.h b/src/os/unix/ngx_atomic.h
index 417cd86ff..74b8b7f84 100644
--- a/src/os/unix/ngx_atomic.h
+++ b/src/os/unix/ngx_atomic.h
@@ -276,26 +276,26 @@ typedef volatile ngx_atomic_uint_t ngx_atomic_t;
static ngx_inline ngx_atomic_uint_t
ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old,
- ngx_atomic_uint_t set)
+ ngx_atomic_uint_t set)
{
- if (*lock == old) {
- *lock = set;
- return 1;
- }
+ if (*lock == old) {
+ *lock = set;
+ return 1;
+ }
- return 0;
+ return 0;
}
static ngx_inline ngx_atomic_int_t
ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add)
{
- ngx_atomic_int_t old;
+ ngx_atomic_int_t old;
- old = *value;
- *value += add;
+ old = *value;
+ *value += add;
- return old;
+ return old;
}
#define ngx_memory_barrier()
diff --git a/src/os/unix/ngx_channel.h b/src/os/unix/ngx_channel.h
index d7a9f6b54..362cc649a 100644
--- a/src/os/unix/ngx_channel.h
+++ b/src/os/unix/ngx_channel.h
@@ -15,10 +15,10 @@
typedef struct {
- ngx_uint_t command;
- ngx_pid_t pid;
- ngx_int_t slot;
- ngx_fd_t fd;
+ ngx_uint_t command;
+ ngx_pid_t pid;
+ ngx_int_t slot;
+ ngx_fd_t fd;
} ngx_channel_t;
diff --git a/src/os/unix/ngx_sunpro_amd64.il b/src/os/unix/ngx_sunpro_amd64.il
index dc454b20b..07f32103b 100644
--- a/src/os/unix/ngx_sunpro_amd64.il
+++ b/src/os/unix/ngx_sunpro_amd64.il
@@ -38,6 +38,6 @@
/
/ ld.so.1: nginx: fatal: hardware capability unsupported: 0x2000 [ PAUSE ]
- .inline ngx_cpu_pause,0
- rep; nop
- .end
+ .inline ngx_cpu_pause,0
+ rep; nop
+ .end
diff --git a/src/os/unix/ngx_sunpro_x86.il b/src/os/unix/ngx_sunpro_x86.il
index fd1cc0049..d7e127cc4 100644
--- a/src/os/unix/ngx_sunpro_x86.il
+++ b/src/os/unix/ngx_sunpro_x86.il
@@ -39,6 +39,6 @@
/
/ ld.so.1: nginx: fatal: hardware capability unsupported: 0x2000 [ PAUSE ]
- .inline ngx_cpu_pause,0
- rep; nop
- .end
+ .inline ngx_cpu_pause,0
+ rep; nop
+ .end
diff --git a/src/os/win32/ngx_atomic.h b/src/os/win32/ngx_atomic.h
index d89a0d3ca..113f56161 100644
--- a/src/os/win32/ngx_atomic.h
+++ b/src/os/win32/ngx_atomic.h
@@ -27,16 +27,16 @@ typedef volatile ngx_atomic_uint_t ngx_atomic_t;
/* the new SDK headers */
#define ngx_atomic_cmp_set(lock, old, set) \
- ((ngx_atomic_uint_t) InterlockedCompareExchange((long *) lock, set, old) \
- == old)
+ ((ngx_atomic_uint_t) InterlockedCompareExchange((long *) lock, set, old) \
+ == old)
#else
/* the old MS VC6.0SP2 SDK headers */
#define ngx_atomic_cmp_set(lock, old, set) \
- (InterlockedCompareExchange((void **) lock, (void *) set, (void *) old) \
- == (void *) old)
+ (InterlockedCompareExchange((void **) lock, (void *) set, (void *) old) \
+ == (void *) old)
#endif
diff --git a/src/os/win32/ngx_wsasend_chain.c b/src/os/win32/ngx_wsasend_chain.c
index 081562762..e2dde22c9 100644
--- a/src/os/win32/ngx_wsasend_chain.c
+++ b/src/os/win32/ngx_wsasend_chain.c
@@ -233,11 +233,11 @@ ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
} else if (ngx_event_flags & NGX_USE_IOCP_EVENT) {
- /*
- * if a socket was bound with I/O completion port then
- * GetQueuedCompletionStatus() would anyway return its status
- * despite that WSASend() was already complete
- */
+ /*
+ * if a socket was bound with I/O completion port then
+ * GetQueuedCompletionStatus() would anyway return its status
+ * despite that WSASend() was already complete
+ */
wev->active = 1;
return in;