aboutsummaryrefslogtreecommitdiffhomepage
path: root/wutil.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-19 00:31:03 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-19 00:31:03 -0800
commit26678682ca90b68f19b993e259bf43384c0a18ec (patch)
treeaf119f1845d12657d42e8ba57f90350c9f89c57f /wutil.cpp
parent7d63900fb8167d344a58c0c7e541166974b0c672 (diff)
Fix indentation of switch statements
Diffstat (limited to 'wutil.cpp')
-rw-r--r--wutil.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/wutil.cpp b/wutil.cpp
index 730ad3d3..f5b1e243 100644
--- a/wutil.cpp
+++ b/wutil.cpp
@@ -153,21 +153,21 @@ FILE *wfopen(const wcstring &path, const char *mode)
size_t idx = 0;
switch (mode[idx++])
{
- case 'r':
- permissions = O_RDONLY;
- break;
- case 'w':
- permissions = O_WRONLY;
- options = O_CREAT | O_TRUNC;
- break;
- case 'a':
- permissions = O_WRONLY;
- options = O_CREAT | O_APPEND;
- break;
- default:
- errno = EINVAL;
- return NULL;
- break;
+ case 'r':
+ permissions = O_RDONLY;
+ break;
+ case 'w':
+ permissions = O_WRONLY;
+ options = O_CREAT | O_TRUNC;
+ break;
+ case 'a':
+ permissions = O_WRONLY;
+ options = O_CREAT | O_APPEND;
+ break;
+ default:
+ errno = EINVAL;
+ return NULL;
+ break;
}
/* Skip binary */
if (mode[idx] == 'b')