aboutsummaryrefslogtreecommitdiffhomepage
path: root/wgetopt.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-05 16:20:09 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-05 19:23:13 -0800
commitfd10844c2b5fe0c1efa2dc034e6c9173b5ed82cb (patch)
treed161223df4ca3dbbda2a5f9f5915943149fd8c3b /wgetopt.cpp
parent35f230235290be2bb482acab986d7017c77ca208 (diff)
Unbreak C++11 due to narrowing; use non-conflicting declaration FISH_COLORS instead of COLORS; remove deprecated register type.
Diffstat (limited to 'wgetopt.cpp')
-rw-r--r--wgetopt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgetopt.cpp b/wgetopt.cpp
index 08ccc3b1..ef0a6459 100644
--- a/wgetopt.cpp
+++ b/wgetopt.cpp
@@ -270,7 +270,7 @@ exchange(wchar_t **argv)
{
/* Bottom segment is the short one. */
int len = middle - bottom;
- register int i;
+ short i;
/* Swap it with the top part of the top segment. */
for (i = 0; i < len; i++)
@@ -286,7 +286,7 @@ exchange(wchar_t **argv)
{
/* Top segment is the short one. */
int len = top - middle;
- register int i;
+ short i;
/* Swap it with the bottom part of the bottom segment. */
for (i = 0; i < len; i++)