Skip to content

Commit 41245cb

Browse files
committed
cleanup trailing whitespace
Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent 0854ddd commit 41245cb

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

os/linux_base.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// #include <sys/event.h>
2323

2424
// marker for hacks we have made to make progress
25-
#define __LINUX_PORT_HDD__ 1
25+
#define __LINUX_PORT_HDD__ 1
2626

2727
/*
2828
* Stub out defines for some mach types and related macros
@@ -114,8 +114,8 @@ struct kevent64_s {
114114
#endif
115115
#define OS_EXPORT
116116

117-
#ifdef OS_WARN_RESULT_NEEDS_RELEASE
118-
#undef OS_WARN_RESULT_NEEDS_RELEASE
117+
#ifdef OS_WARN_RESULT_NEEDS_RELEASE
118+
#undef OS_WARN_RESULT_NEEDS_RELEASE
119119
#endif
120120

121121
#ifdef OS_WARN_RESULT
@@ -132,7 +132,7 @@ struct kevent64_s {
132132
// These and similar macros come from Availabilty.h on OS X
133133
// Need a better way to do this long term.
134134
#define __OSX_AVAILABLE_BUT_DEPRECATED(a,b,c,d) //
135-
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(a,b,c,d,msg) //
135+
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(a,b,c,d,msg) //
136136

137137

138138
// Print a warning when an unported code path executes.

src/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ dispatch_io_create_with_path(dispatch_io_type_t type, const char *path,
390390
(path_data->oflag & O_NOFOLLOW) == O_NOFOLLOW
391391
#ifndef __linux__
392392
|| (path_data->oflag & O_SYMLINK) == O_SYMLINK
393-
#endif
393+
#endif
394394
? lstat(path_data->path, &st) : stat(path_data->path, &st),
395395
case 0:
396396
err = _dispatch_io_validate_type(channel, st.st_mode);
@@ -2095,7 +2095,7 @@ _dispatch_operation_advise(dispatch_operation_t op, size_t chunk_size)
20952095
// TODO: set disk status on error
20962096
default: (void)dispatch_assume_zero(err); break;
20972097
);
2098-
#endif
2098+
#endif
20992099
}
21002100

21012101
static int

src/source.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4752,7 +4752,7 @@ _dispatch_mach_debug_attr(dispatch_mach_t dm, char* buf, size_t bufsiz)
47524752
dm->dm_refs->dm_checkin ? " (pending)" : "",
47534753
dm->dm_refs->dm_sending, dm->dm_refs->dm_disconnect_cnt,
47544754
(bool)(dm->ds_atomic_flags & DSF_CANCELED));
4755-
#endif
4755+
#endif
47564756
}
47574757
size_t
47584758
_dispatch_mach_debug(dispatch_mach_t dm, char* buf, size_t bufsiz)
@@ -4769,7 +4769,7 @@ _dispatch_mach_debug(dispatch_mach_t dm, char* buf, size_t bufsiz)
47694769
offset += _dispatch_mach_debug_attr(dm, &buf[offset], bufsiz - offset);
47704770
offset += dsnprintf(&buf[offset], bufsiz - offset, "}");
47714771
return offset;
4772-
#endif
4772+
#endif
47734773
}
47744774

47754775
#if DISPATCH_DEBUG

src/transform.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ _dispatch_transform_swap_to_host(uint16_t x, int32_t byteOrder)
200200
#ifdef __LINUX_PORT_HDD__
201201
LINUX_PORT_ERROR();
202202
return x;
203-
#else
203+
#else
204204
if (byteOrder == OSLittleEndian) {
205205
return OSSwapLittleToHostInt16(x);
206206
}
207207
return OSSwapBigToHostInt16(x);
208-
#endif
208+
#endif
209209
}
210210

211211
static uint16_t
@@ -214,12 +214,12 @@ _dispatch_transform_swap_from_host(uint16_t x, int32_t byteOrder)
214214
#ifdef __LINUX_PORT_HDD__
215215
LINUX_PORT_ERROR();
216216
return x;
217-
#else
217+
#else
218218
if (byteOrder == OSLittleEndian) {
219219
return OSSwapHostToLittleInt16(x);
220220
}
221221
return OSSwapHostToBigInt16(x);
222-
#endif
222+
#endif
223223
}
224224

225225
#pragma mark -
@@ -534,9 +534,9 @@ _dispatch_transform_from_utf16le(dispatch_data_t data)
534534
#ifdef __LINUX_PORT_HDD__
535535
LINUX_PORT_ERROR();
536536
return (dispatch_data_t)0;
537-
#else
537+
#else
538538
return _dispatch_transform_from_utf16(data, OSLittleEndian);
539-
#endif
539+
#endif
540540
}
541541

542542
static dispatch_data_t
@@ -545,9 +545,9 @@ _dispatch_transform_from_utf16be(dispatch_data_t data)
545545
#ifdef __LINUX_PORT_HDD__
546546
LINUX_PORT_ERROR();
547547
return (dispatch_data_t)0;
548-
#else
548+
#else
549549
return _dispatch_transform_from_utf16(data, OSBigEndian);
550-
#endif
550+
#endif
551551
}
552552

553553
static dispatch_data_t
@@ -556,9 +556,9 @@ _dispatch_transform_to_utf16le(dispatch_data_t data)
556556
#ifdef __LINUX_PORT_HDD__
557557
LINUX_PORT_ERROR();
558558
return (dispatch_data_t)0;
559-
#else
559+
#else
560560
return _dispatch_transform_to_utf16(data, OSLittleEndian);
561-
#endif
561+
#endif
562562
}
563563

564564
static dispatch_data_t
@@ -567,9 +567,9 @@ _dispatch_transform_to_utf16be(dispatch_data_t data)
567567
#ifdef __LINUX_PORT_HDD__
568568
LINUX_PORT_ERROR();
569569
return (dispatch_data_t)0;
570-
#else
570+
#else
571571
return _dispatch_transform_to_utf16(data, OSBigEndian);
572-
#endif
572+
#endif
573573
}
574574

575575
#pragma mark -

0 commit comments

Comments
 (0)