aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2009-01-10 12:18:14 +0000
committerLinus Walleij <triad@df.lth.se>2009-01-10 12:18:14 +0000
commit5b4a4d2b78e61715937b26c0bab9e901d891c937 (patch)
tree2b439eb52300aac1f647599e79e9a788a6baec86 /examples
parent16ee3423f5545c4f13e6a472845609e9e81abec1 (diff)
downloadlibmtp-5b4a4d2b78e61715937b26c0bab9e901d891c937.tar.gz
Mingw32 fixes
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