Browse Source

cacaplay: rename "eof" to "has_eof" to prevent shadowing a mingw32 variable.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
22e5b5f4ec
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/cacaplay.c

+ 3
- 3
src/cacaplay.c View File

@@ -67,7 +67,7 @@ int main(int argc, char **argv)
{
caca_event_t ev;
int ret = caca_get_event(dp, CACA_EVENT_ANY, &ev, 0);
int eof = 0;
int has_eof = 0;

if(ret && caca_get_event_type(&ev) & CACA_EVENT_KEY_PRESS)
break;
@@ -84,7 +84,7 @@ int main(int argc, char **argv)
}
else if(n == 0)
{
eof = 1;
has_eof = 1;
}
total += n;
}
@@ -105,7 +105,7 @@ int main(int argc, char **argv)
break;
}

if(eof)
if(has_eof)
break;
}



Loading…
Cancel
Save