aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/albumart.c2
-rw-r--r--examples/thumb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/albumart.c b/examples/albumart.c
index 0b36919..c1fc7ad 100644
--- a/examples/albumart.c
+++ b/examples/albumart.c
@@ -97,7 +97,7 @@ int main (int argc, char **argv) {
imagedata = malloc(filesize * sizeof(uint8_t));
#ifdef __WIN32__
- if ( (fd = open(path, O_RDONLY|O_BINARY) == -1 ) {
+ if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
#else
if ( (fd = open(path, O_RDONLY)) == -1) {
#endif
diff --git a/examples/thumb.c b/examples/thumb.c
index 59401d3..ddb5549 100644
--- a/examples/thumb.c
+++ b/examples/thumb.c
@@ -77,7 +77,7 @@ int main (int argc, char **argv) {
imagedata = malloc(filesize * sizeof(uint16_t));
#ifdef __WIN32__
- if ( (fd = open(path, O_RDONLY|O_BINARY) == -1 ) {
+ if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
#else
if ( (fd = open(path, O_RDONLY)) == -1) {
#endif